by formerly_proven · 3y ago · 0 comments
[1] tkinter is actually a bi-directional Tcl <-> Python binding under the hood, all the binding code on the Python side is just classes and every method is just a thin wrapper around calling into Tcl.
It uses the native theming APIs to draw the widgets in a mostly native-looking style, but (unlike e.g. wxWidgets) it doesn't use native widgets, so it doesn't behave quite like native applications.
But I agree that it's pretty neat. And the default theme on Linux has been updated and now looks more like some old-school GTK themes (which I like) than Motif.
Although, I'm guessing now that Python and Rust are becoming BFF, https://tauri.app/ will become a more and more attractive option.
It of course depends on what the target is, exactly. If you don't care about looking "native", for whatever little meaning that has had for the past decade, you can just use whatever theme you fancy with Ttk. The theming engine might not be as powerful as Qt's, but it's certainly good enough for emulating a modern flat-look UI: https://github.com/israel-dryer/ttkbootstrap
Some people would even find some of the built-in ones perfectly satisfying, I even know some people who love the classic Tk look (https://wiki.tcl-lang.org/page/List+of+ttk+Themes)