Today we will introduce several common tools in Python GUI development, as well as the detailed operation steps for the dos command line window in python GUI programs, if you are interested in it, you can click the following article.
MFC
Windows Pywin32 allows you to use PYTHON to develop win32 applications in the same way as VC. The Code style can be similar to that of win32 sdk, or similar to that of MFC. If you still don't give up the same vc code process in python, this is a good choice.
PythonCard
In Python GUI development tools, PythonCard is actually a re-encapsulation of wxPython. However, the encapsulation is simpler and easier to use than wxPython.
- A detailed introduction to the operations on tuples embedded in C/C ++ using Python
- Python embedding C/C ++ to create a dictionary
- Python embedding C/C ++ in releasing resources
- Analysis of related operation solutions for Python Embedded C instances
- Introduction to five types of Python GUI development tools
Dabo
It is still a re-encapsulation Library Based on wxpython, which has never been used and is not familiar with it. It provides database access, business logic, and user interfaces.
AnyGui
Access other tool sets through underlying APIs, such as tkinter, wxpython, and qt.
WPY
The MFC-style Gui development library and code style are similar to that of MFC. You can still use this library to develop GUI applications without worrying about platform porting. She is also a cross-platform library.
IronPython
If you want to develop. for applications under. net, IronPython is your choice. Similar to jython, IronPython also supports standard python modules.. net Library. You can also understand that it is another python development environment. You can easily use the python syntax for. net application development, which sounds really interesting.
In short, I have introduced so much. My personal opinion is that if you are a java User, you should use jython. In addition to enjoying the functions and syntax of python modules, you can find many java shadows. net users, so use iron python. If you are familiar with Visual C ++, you can use MFC, WPY, or wxPython. Of course, we recommend wxPython.
Of course, I think that tkinter is a GUI library that everyone should understand and learn for C, because it is very lightweight and can be used by small applications, for larger applications, you can use pyGtk, pyQt, WxPython, or PythonCard. In this way, you can focus on the knowledge convergence and fast software development.
How to execute a python GUI without the dos command line window?
For example, the following program
- #!/usr/bin/env python
- # example base.py
- import pygtk
- pygtk.require('2.0')
- import gtk
- class Base:
- def __init__(self):
- self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
- self.window.show()
- def main(self):
- gtk.main()
- print __name__
- if __name__ == "__main__":
- base = Base()
- base.main()
The above content mainly introduces several common tools in the Python GUI development tool, and introduces the actual operation solution for the python GUI program without the dos command line window.