Pure python gui library?

Python has many graphical interfaces: tkinter, wxWidgets, pyGTK, etc. But this whole graphical interface must be installed and quite heavy, so it’s a little more difficult to deploy end-user GUI picton applications that transmit the mentioned GUI libraries.

I recently thought about the built-in ctypes python. Theoretically, you can create a clean python GUI library that will use ctypes on windows (windll.user32.CreateWindowEx, etc.), Native pyObjC on MacOS and pyGTK / pyQt on gnome / kde. Is there such a library? If not, what do you think is wrong with the idea?

+5
source share
8 answers

The path of least effort and best results was to find out what you needed to deploy the application using existing GUI libraries.

+10
source

starting with Python 2.7 and 3.1, Tk will look much better.

http://docs.python.org/dev/whatsnew/2.7.html#ttk-themed-widgets-for-tk

“Tcl / Tk 8.5 includes a set of theme widgets that reimplement Tk’s main widgets but have a more customizable look and can therefore more closely resemble widgets on native platforms. This widget set was originally named Tile, but was renamed to Ttk (for "themed Tk") when adding to version 8.5 Tcl / Tck. "

+10
source

Tkinter python . python, .

+8

" python gui" , , ctypes, , , wxPython

+5

, , , GTK, Tk, Wx, QT .. python , , anygui, - , , .

( ..). , , - - .

, py2exe linux, DLL , , - , . - , .

+5

, "".

wx Python, ; , API- , .

, wx, , , , . , , , - .

+4

-, , , , , , .

+3
source

I think about this not to reinvent the wheel. It will work, but why do you need to do this? All of the GUI libraries you mentioned are stable and more or less bulletproof.

I could imagine that there are experiments on implementing a pure python library. But I never saw him. Everything about GUIs is hard work and there won't be such a large audience in a clean python library.

+2
source

All Articles