When it comes to develop python desktop application we will think of using the tkinter or wxpython to generate the UI for the application but do you know that there is a open source IDE which can make our programming work a lot more easier than before with ready made button, menu and so on which we can use to create our python’s desktop application?
After I have created the first desktop application with this IDE I would like to recommend it to you all, it is called sharp develop (aka # develop) and you can download it through this link. Before we start to create our first application with # develop make sure you have downloaded the version 4.4 of this IDE instead of version 5 because it seems like python application development environment is not yet been included in the version 5.
With the tool we need let get started…
Step 1 :
Step 2 :
Step 3 :
Double click on the Button will bring you to the Button1Click function, under that method insert this line of code.
def Button1Click(self, sender, e): print "Hello World!"
You also need to import the sys module on the top of the source code for later use.
Step 4 :
Step 5 :
Now click on the Close sub-menu tab will bring you to the close function, now type in this code below the function to close the application once the close sub-menu has been clicked.
def CloseToolStripMenuItemClick(self, sender, e): sys.exit()
Step 6 :
Step 7 :
Overall speaking this IDE is what a python developer really needs to create a more advance UI for his or her desktop application written in Python and the best of all is it is completely free for you to use to create your application (not only for those applications written in python but also for application written in other programming languages such as c#, c++ and even Ruby as well)!