wxPython

1. what is wxPython ? 
wxPython is a GUI toolkit for the Python programming language. It allows Python programmers to create programs with a robust, highly functional graphical user interface, simply and easily. It is implemented as a Python extension module (native code) that wraps the popular wxWidgets cross platform GUI library, which is written in C++.
 
2. what  could wxPython  do ?
We usually use wxPython to create a traditional desktop application. 
 
3. how to install wxPython ?
 In ubuntu, we could install it by "sudo apt-get install wxtools"

First Example

import wx

app = wx.App(False)               

frame = wx.Frame(None, wx.ID_ANY, "Hello World")

frame.Show(True)

app.MainLoop()

The theme of wxPython

Frames and Dialogs

wxPthon Cntrols

Process and Events

Window Layout

.......




How to learn wxpython

wxPython gives us a demo program so that we could view the demo and view the source code at the same time.

 

Let's see demo program.




There is other good GUI lib e.g PyQt.


Thank you.

wxPython

By Jinyi Wang

wxPython

  • 717