You can download easygui.py or a zip file that contains easygui.py. To install it, you just have to put the file easygui.py in a place where Python can find it. Python has a list of places on the hard drive where it looks for modules it can use. This can be a bit complicated, because it’s different for Windows, Mac OS X, and Linux. But if you put easygui.py in the same place where Python itself is installed, Python will find it.
Before anything else, make sure that you imported Easygui by typing “import easygui” at the beginning of the program for the program to be able to run it. In Easygui, print command has a counterpart. It is the msgbox. Also, raw_input has its counterpart as enterbox, input with integerbox. There are also more things you can do with easygui. Try these.
You can also use button box or choice box to have multiple choices.
No comments:
Post a Comment