How to Use the Python GUI program to "Disable" the appearance of the command line window

Source: Internet
Author: User
Tags gtk

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

 
 
  1. #!/usr/bin/env python  
  2. # example base.py  
  3. import pygtk  
  4. pygtk.require('2.0')  
  5. import gtk  
  6. class Base:  
  7. def __init__(self):  
  8. self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)  
  9. self.window.show()  
  10. def main(self):  
  11. gtk.main()  
  12. print __name__  
  13. if __name__ == "__main__":  
  14. base = Base()  
  15. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.