GUI Programming in Python
GUI Programming in Python
Python
A gateway to create Python-MySQL projects
Like many other popular programming languages Python too supports GUI
development.
Python provides several different options for writing GUI applications
TkInter – Python’s standard GUI library
PyQt5 – A specific installable library written in C++ for rapid GUI development
wxPython – A cross platform GUI toolkit for python
https://wiki.python.org/moin/GuiProgramming contains a detailed list
Creating a good looking GUI by manual coding can be tedious. A visual GUI
designer tool is always handy.
Many GUI development IDEs targeted at wxPython are available. Following are
some of them:
wxFormBuilder - an open source, cross-platform WYSIWYG GUI builder that can
translate the wxWidget GUI design into C++, Python, PHP or XML format
wxGlade - a GUI designer written in Python with the popular GUI toolkit wxPython,
that helps you create wxWidgets/wxPython user interfaces
BoaConstructor - GPL A RAD GUI Building IDE for wxPython.
We can
Layout select
visible only Vertical or
in object Horizontal
tree
In a box resizer
Ashok Sengupta - PGT we
CS can dynamically add number of control elements horizontally or vertically in rows or
columns depending upon the boundaries of the container Frame.
1. Click Forms Palette
Creating the Basic Form
3. Give
sensible
names to
Frame and a
Title too.
Please do not Edit this Guard Code. We are going to inherit this
python class CalcFrame in Calculator class to be defined in
Ashok Sengupta - PGT CS
another file calc.py . Also we are going the to override the
event methods addition and subtraction in the Calculator class.
Writing code for the calc.py
https://wxpython.org/
https://www.tutorialspoint.com/wxpython/