In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to use the Python GUI program to prohibit the emergence of command line windows. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this 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 win32 sdk or MFC, as you choose. If you still don't give up the same code process as vc under python, then this is a good choice.
PythonCard
In Python GUI development tools, PythonCard is actually a re-encapsulation of wxPython. But the encapsulation is simpler, and it feels more intuitive and simpler to use than wxPython.
Dabo
Is still a wxpython-based repackaging library, has not been used, do not understand. It provides database access, business logic and user interface.
AnyGui
Use the underlying api to access other toolsets, such as tkinter,wxpython and qt. I haven't used it much.
WPY
MFC-style Gui development library, code style is also similar to MFC, even so, you can still use this library to develop GUI applications without worrying about platform migration. She is also a cross-platform library.
IronPython
If you want to develop applications under. Net, then IronPython is your choice, similar to jython, it also supports standard python modules, but also adds support for. Net libraries. You can also understand that it is another python development environment. It sounds really interesting that you can easily use python syntax to develop. Net applications.
In short, introduced so much, my personal opinion is that if you are a java user, then you can use jython, in addition to enjoying the module functions and syntax of python, you can find a lot of java shadow; if you are a .net user, then use iron python. If you are familiar with Visual C++, then you can use MFC,WPY or wxPython, of course I suggest wxPython.
Of course, I think tkinter is a GUI library that everyone who originally engaged in C should understand and learn, because it is very light, small applications can use her to do, and for larger applications can be done with pyGtk,pyQt,WxPython or PythonCard, in this case, you can not only pay attention to the convergence of knowledge, but also quickly carry out software development.
How to execute a python GUI program without a dos command line window?
Such as 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 () about how to use it The Python GUI program forbids the appearance of the command line window, and that's it. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.