background preloader

GUI

Facebook Twitter

GIT

Codelike. So you've decided to learn Python. Maybe you've already taken a look at the Python site. But where to begin? Are there good books for learning? Programming exercises? What are essential tools one must know about? So, I'd like to help you getting started with Python quickly. Which Python Version? Perhaps you've noticed already: There are two slightly incompatible Python versions out there: 2.7: The 2.x line has been in active use for years. Which one to start with, then? You want to use certain libraries right now and they don't work under 3.x yet.you don't know which libraries you need, but it might be lots of different ones.you want to work with a web framework. Go with Python 3.2, if: you want to use the language for one specific task and the library you need is already ported to Python 3.you just want to learn the language itself and there's no immediate requirement for 3rd party libraries.

When in doubt, pick whichever one - it won't be difficult to switch later. Books Online. Setting up IDE and creating a cross platform Qt Python GUI application « Popdevelop – A developer team from Malmö, Sweden. This is meant to be a comprehensive guide on how to get started coding a cross platform GUI application using python. For achieving this we will use Eclipse with the plug-in PyDev and PyQT which is python bindings for the cross platform UI framework QT. My aim is to make this guide as thorough as possible so if you already know some of the following parts please just skip them. If anything is missing or you find something unclear please leave a comment and I will correct it.

The outline of we are going to do is: Download and install PythonDownload and install PyQtDownload and install EclipseDownload and install PydevGetting code completion for PyQT in EclipseCreating files and coding a tiny PyQT GUI Download and install Python First you need python installed on your computer. After install is done it is nice to make python available in the command prompt regardless of the catalog you are using. You should now be able to go to your command prompt and type python to start python. Conclusion. Python Programming/GUI Programming. There are various GUI toolkits to start with. Tkinter[edit] Tkinter, a Python wrapper for Tcl/Tk, comes bundled with Python (at least on Win32 platform though it can be installed on Unix/Linux and Mac machines) and provides a cross-platform GUI.

It is a relatively simple to learn yet powerful toolkit that provides what appears to be a modest set of widgets. However, because the Tkinter widgets are extensible, many compound widgets can be created rather easily (e.g. combo-box, scrolled panes). Because of its maturity and extensive documentation Tkinter has been designated as the de facto GUI for Python. To create a very simple Tkinter window frame one only needs the following lines of code: import Tkinter root = Tkinter.Tk() root.mainloop() From an object-oriented perspective one can do the following: To learn more about Tkinter visit the following links: PyGTK[edit] See also book PyGTK For GUI Programming Home Page PyQt[edit] PyQt is a wrapper around the cross-platform Qt C++ toolkit. WxPython.