Advantages and Disadvantages of Tkinter and wxpython HelloWorld by mayuri takle - March 4, 2019June 20, 20240 Contents #Tkinter: Pros: part of python, nothing extra to download. Very simple syntax. The text widget is remarkably powerful and very easy to work with. The canvas widget is also very easy and powerful. No other toolkit provides the same mix of ease and power than those two widgets in my experience. Uses native widgets on the mac and windows. Tk is rock solid with few cross-platform idiosyncrasies. I think Tkinter’s binding mechanism is far superior to wxPython’s; it’s more flexible and consistent. I think Tkinter’s three geometry managers – pack, place and grid – are much more powerful and easy to use than the wxPython sizers. Mature, stable. Widely ported. Simple API is easy to learn. Cons: Sometimes hard to debug in that Tkinter widgets at their core aren’t python objects; tkinter provides a wrapper around the actual tk widgets which sometimes means you get weird error messages. There is very little printing support (you can generate postscript docs from the canvas, but there’s no built-in support in the text widget for printing). Some people claim Tk is ugly. Tkinter isn’t as “pythonic” as wxPython Non-native look-and-feel. Simplistic model is easy to learn, but becomes cumbersome with complex interfaces. To be truly usable, requires downloading extra toolkits Probably a dead-end technology, as toolkits such as wxPython gain mindshare. Python/tkinter GUIs run unchanged on Microsoft Windows, X Windows (on Unix and Linux), and the Mac OS (both Classic and OS X). #wxPython: Pros: It has many more widgets, though often that means there are three types of notebook widgets rather than one kitchen-sink widget. wxPython widgets are first class python objects which is really nice. wxPython seems to be more popular; some people care about that, some don’t. wxPython has much better printing support than Tkinter. Large library of widgets Native look-and-feel. Very flexible. Very helpful user community. Cons: wxPython requires a separate download which can be a pain to manage when you deploy your app. wxPython is a bit buggy IMO, and there are definite cross-platform issues. Very active development (although this is a pro as well ) means that there are quite often bugs and, less often, API changes. Requires downloading and installing (not included with Python) A free extension package, pmw (megawidgets also called compound widgets), adds advanced widgets to the tkinter. please note, Tkinter is tkinter (no capital T) in python 3. I was trying to import the module to work with Pmw tkinter Python 3 on raspberry Pi based project but it was showing import error – ModuleNotFoundError: No module named ‘Tkinter’ Higher-level toolkits such as PythonCard and Dabo are built on top of base APIs such as wxPython and tkinter. With the proper library, you can also use GUI support in other toolkits in Python, such as Qt with PyQt, GTK with PyGTK, MFC with PyWin32, .NET with IronPython, and Swing with Jython or JPype. Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)MoreClick to share on LinkedIn (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window)Like this:Like Loading... Related