PythonPython3java
 

Python GUI Programming (Tkinter)

Python provides libraries for multiple graphical development interfaces. Several common Python GUI libraries are as follows:

  • Tkinter: The Tkinter module (Tk interface) is the interface to Python's standard Tk GUI toolkit. Tk and Tkinter can be used on most Unix platforms, as well as Windows. And Macintosh systems. Subsequent versions of Tk8.0 can implement native window styles and work well on most platforms.

  • wxPython:wxPython is an open source software, a great GUI graphics library for the Python language that allows Python programmers to easily create complete, full-featured GUI users. interface.

  • Jython: Jython programs integrate seamlessly with Java. In addition to some standard modules, Jython uses Java's modules. Jython has almost all the modules in the standard Python that don't depend on the C language. For example, Jython's user interface will use Swing, AWT or SWT. Jython can be compiled dynamically or statically into Java bytecode.

Python GUI Programming (Tkinter)

Python provides libraries for multiple graphical development interfaces. Several common Python GUI libraries are as follows:

  • Tkinter: The Tkinter module (Tk interface) is the interface to Python's standard Tk GUI toolkit. Tk and Tkinter can be used on most Unix platforms, as well as Windows. And Macintosh systems. Subsequent versions of Tk8.0 can implement native window styles and work well on most platforms.

  • wxPython:wxPython is an open source software, a great GUI graphics library for the Python language that allows Python programmers to easily create complete, full-featured GUI users. interface.

  • Jython: Jython programs integrate seamlessly with Java. In addition to some standard modules, Jython uses Java's modules. Jython has almost all the modules in the standard Python that don't depend on the C language. For example, Jython's user interface will use Swing, AWT or SWT. Jython can be compiled dynamically or statically into Java bytecode.

.........

Standard attributes

Standard properties are common properties of all controls, such as size, font and color.

properties Description
Dimension Control size;
Color Control color;
Font Control font;
Anchor anchor point;
Relief Control style;
Bitmap bitmap;
Cursor cursor;

Geometry Management

The Tkinter control has a specific geometry state management method that manages the entire control area organization. Here is Tkinter's open geometry management class: package, grid, location

geometry method Description
pack() package;
grid() Grid;
place() Location;





welookups is optimized for learning.© welookups 2018 -
All Right Reserved and you agree to have read and accepted our term and condition