mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

11K
active users

#tkinter

0 posts0 participants0 posts today

So... I wanted to package my Python app using tkinter UI library (it is just good enough for my purpose) as a flatpak. Flatpaks are based on "runtimes" similar to docker base images.

As I did obviously not use any "big" UI framework (Gnome or KDE) and it already provides Python with tkinter, I decided to use the org.freedesktop.Platform as a runtime for my flatpak. The first challenge was to get the dbus-python package to compile, as it requires a dbus binary for compiling it. So I added the freedesktop DBus implementation. I need dbus functionallity, as it allows me to use the "XDG Desktop Portals" to interactively open files when running in the flatpak sandbox. After this, everything worked! :neocat_happy:

Unfortunately, the application cannot load any proper font, so it falls back to the 90s era fonts compiled statically into Tcl/Tk (which tkinter is based on). After some trial and error, and finding out how add custom fonts to Tk, I disovered that the freedesktop runtime does not ship freedesktop fontconfig. And also I can't add it that easily to the build step, too, as the bundled Tk installation does not link to it anyway… :neocat_angry:

Burned at least an hour I didn't have trying to get tkinter to run inside PyCharm.

What eventually worked: uninstall the flatpak version of PyCharm that Ubuntu's default "software" app offers and get one directly from JetBrains.

Once again, all computer problems are solved with some variant of "turn it off and back on again".

From the archive! Creating A Word Clock With Python And Tkinter

The clock was essentially a wall of letters with lights behind that light up depending on what time it is as a sentence.

Without the lights the clock looks like a jumble of letters, it is only when the relevant letters are "lit" from behind is on that the relevant time is displayed.

hashbangcode.com/article/creat

SVG-виджеты для tcl/tk. Финальный аккорд. Часть IV

Реализация проекта «SVG-виджеты для tckl/tk» позволяет устранить одну из главных претензий, предъявляемых к графическому интерфейсу приложений, разрабатываемых с использованием tk - устаревший дизайн виджетов . Переход от классических виджетов к svg-виджетам не требует больших усилий. В этом лично я убедился, переписав gui утилиты для работы с электронной подписью cryptoarmpkcs. Ее дистрибутивы под именем cryptoarmpkcs_svg для платформ Linux64 и Windows64 можно найти в проекте :

habr.com/ru/articles/869302/

ХабрSVG-виджеты для tcl/tk. Финальный аккорд. Часть IVРеализация проекта «SVG-виджеты для tckl/tk» позволяет устранить одну из главных претензий, предъявляемых к графическому интерфейсу приложений, разрабатываемых с использованием tk - устаревший дизайн...