home.social

#tkinter — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #tkinter, aggregated by home.social.

  1. Pet peeve. You never know if your installed #python has #tkinter included or not. It seems to be completely random.

  2. I've been spending a lot of time this past week learning how to write unit tests for GUI apps, something I've been wanting for quite a long time. I couldn't find much information online about how to test a TkInter GUI, so I wrote up what I learned (part 1).

    shallowsky.com/blog/programmin

  3. Как создать калькулятор для расчёта квадратных уравнений на Python с использованием фреймворка Tkinter

    Когда мне в школе мне задали сделать итоговый проект для допуска к ОГЭ. Я долго думал над темой проекта, и решил совместить две вещи в которых я хорошо разбираюсь, Квадратные уравнения и мой любимый язык программирования Python. На этапе идеи я сразу понял с помощью чего именно я сделаю свой проект. Изначально у меня получилось разработать консольное приложение, состоящее из бесконечного цикла цикла и простого алгоритма который спрашивает тип уравнения: Полное квадратное/неполное квадратное, и после выбора мы могли вводить a, b и c/a и b. Эту версию проекта я «накидал» за один вечер, когда я показал результат учителю, он порекомендовал мне сделать графический интерфейс, я моментально вспомнил Python библиотеку Tkinter для создания графического интерфейса. Тут уже пришлось покумекать как именно это сделать, ведь на практике я еще на тот момент не сталкивался с этим фреймворком. В ходе поиска документации по данному фреймворку я столкнулся с тем что все материала были содержали слишком много «воды». На тот момент нейросети были чем то новым и неизведанным, как раз так совпало.

    habr.com/ru/articles/1031374/

    #Python #tkinter

  4. Развиваем проект: фильтрация, поиск и экспорт данных

    В прошлой части мы превратили простое приложение для заметок в удобный инструмент с цветовой индикацией, сортировкой и возможностью редактирования. Однако, когда задач становится много, даже самый красивый список может превратиться в нечитаемую ленту. Согласитесь, сложно ориентироваться, когда нужно найти одну важную задачу среди сотни выполненных. В этой статье мы добавим инструменты профессионального управления:

    habr.com/ru/articles/1014408/

    #Python #tkinter #desktopприложение #csv #pdf #цветовая_индикация #выпадающий_список

  5. Развиваем проект: добавляем новые возможности в десктопное приложение

    Наше приложение получилось достаточно удобным, но давайте сделаем его ещё функциональнее. В предыдущей части мы заложили основу: работа с JSON, CRUD-операции и базовый интерфейс. Теперь пришло время добавить те самые «плюшки», которые превращают учебный проект в полноценный инструмент. Мы добавим четыре важные функции:

    habr.com/ru/articles/1013222/

    #Python #Разработка_desktopприложений #Программирование #Tkinter #Создание_приложений_для_начинающих

  6. Вспоминает что такое CRUD на примере десктопного менеджера на Python

    Многие новички, которые только начинают свою карьеру в программировании, не совсем понимают что такое CRUD. CRUD (Create, Read, Update, Delete) - термин, исходя из обычного перевода (Создавать, читать, обновлять, удалять), обозначает четыре базовые операции для управления данными в системах. Я хочу, попытаться, объяснить на простом примере что же это такое и как с ним можно работать. Сегодня мы напишем классический десктопный менеджер задач с графическим интерфейсом. Это отличный способ изучить и закрепить:

    habr.com/ru/articles/1013114/

    #Python #Tkinter #десктопное_приложение #менеджер_задач #CRUD #JSON #GUI #программирование_для_начинающих #создание_приложений

  7. The newest improvement in my language learning tool #xiaolongdictionary is, that one can now comfortably enter special characters, that one might not have as keys on standard keyboard layouts. Since I use it to learn #mandarin / #chinese and I use US keyboard layout, those special characters are the pīnyīn vowels with diacritics.

    This looks as shown in [1].

    Currently, the shortcut is `ctrl+i`, "i" for "insert". The special chars can be configured in the config file.

    #python #tkinter #coding

  8. Je suis sûr que vous critiquez toutes et tous #Tkinter, mais j'ai un de #MesÉleves, il est trop fort avec ⤵️

    #Python #NSI

  9. I made a little hourglass demo using #Pymunk (2D physics) and #Tkinter ( #TCL / #Tk Gui via #Python). It's nothing special, but fun to watch.

    codeberg.org/sforman/OddsAndEn

  10. Just created a new release of my language learning tool #xiaolongdictionary [1] packing a massive improvement of usability for non-technical users. The change list can be found in the release notes as well. Most of the improvements are about exposing functionality for creating and editing words via the UI. Actions that previously only could be done by editing text files.

    #computerprogramming #code #codeberg #coding #python #tkinter #language #learn #freesoftware

    [1]: codeberg.org/ZelphirKaltstahl/

  11. If you triple-click to select line-by-line in a Tk Text widget that is displaying Unicode text that includes the BOM it will put the BOM in the selection (of the first line.) But not if you just double-click to select word-by-word, or just select normally char-by-char by click-and-drag.

    Is this worth a bug report? That's my question.

    #Tk #TCL #Tkinter

  12. I released 2 new versions[1] (v0.5.0 and v0.5.1) of my #xiaolongdictionary language/vocabulary learning software today, with new features and improvements.

    One new feature is, that one can now plot progress and daily training of words for any search result, as well as result of saved search.

    Another is the main window status bar.

    An accessibility improvement is behavior of tabbing through widgets in the main window.

    [1]: codeberg.org/ZelphirKaltstahl/

    #python #tkinter #tk #programming #release

  13. I added a new data visualization to my language learning tool. As one can see, I am a bit below my goal for words trained per day.[1]

    Also I reworked the tag list widget, so that one can (un)select tags and undo that, before confirming changes when bulk editing tags.[2] The tags are now so called check buttons (checkboxes in browser UI speak). I am using their inherent state of being (un)selected.

    I'll probably make a new release soon.

    #programming #python #tkinter #gui #xiaolongdictionary

  14. I also noticed, that #tkinter has some issues with allocating the correct height or space for text depending on the screen resolution. On my FHD screens all looks good, but on a screen with higher resolution the tag widgets look bad, and almost cannot be closed/removed properly from the tag list widget by clicking their little "x" button. Will need to find another layout for the tag widget, that circumvents this issue. This kind of thing might be the first shortcoming of tkinter I have noticed.

  15. Found a silly bug in my language learning tool, that I introduced in a previous change and release. The bug caused the global search to act like a refining search. Now fixed in release v0.4.2 [1].

    [1]: codeberg.org/ZelphirKaltstahl/

    #python #tkinter #xiaolongdictionary #release #programming

  16. I like the possibility to "tear off" a menu in #tkinter. I think I have not seen that in any other GUI framework yet.

  17. I built a new release of my language learning tool #xiaolongdictionary [1].

    New in this release: Saved searches. Perform any complex search and save it, to re-run the same search later. If the vocabulary changes in the meantime, the search result also potentially changes.

    (For saving resulting vocabulary, I plan to add a "save search result" functionality later.)

    [1]: codeberg.org/ZelphirKaltstahl/

    #programming #python #tkinter #language

  18. Window Manager: #BSPWM
    Operating System: #Ubuntu 24.04.2 LTS
    Programming Language: #Python 3.12

    This is another one of my latest #Tkinter applications, uploaded to GitHub as "novaWebCal" and supporting different month- and year-based calendars.

  19. Window Manager: #BSPWM
    Operating System: #Ubuntu 24.04.2 LTS
    Programming Language: #Python 3.12

    This is one of my latest #Tkinter applications, known simply as "Toolkit" but to be uploaded to GitHub as "novaToolkit" eventually.

    This application utilizes the theme and styling features of `tkinter.ttk` up to a point, and not on the text and scrolled text windows in any way.

  20. Hype for the Future 80/284: Topics for the YouTube Channel

    Introduction On this Monday, January 19, 2026, novaTopFlex is slated to return to GitHub after a relatively long hiatus and create new repositories for educational, documentary, scientific, and artistic purposes in all counts of the concept and context. Topics The first new feature shall be a link applet using the Tkinter graphical toolkit. The application will be presented to both GitHub and YouTube, with more complex setups coming soon using the Tkinter applet and related applets. The […]

    novatopflex.wordpress.com/2026

  21. New idea for my language learning tool: Saved searches! I think I got the idea from #thunderbird, where one can save searches as virtual folders, which when clicked perform the same search again across all selected folders locally or remotely, as configured.

    In my tool it will merely filter local vocabulary. This is also good preparation for doing things like showing the last search result of a previous session.

    #programming #coding #python #tkinter #language #mandarin #feature

  22. I improved the reflow further, by debouncing unnecessary configure events and only reflowing at most every `x` milliseconds, where `x` can be passed to the constructor. Currently for the tag list widget, the reflowing is set to happen with a debounce of 50ms.

    #python #tkinter #gui #xiaolongdictionary #canvas #programming #coding

  23. Today I released version `0.3` of my language learning tool "Xiaolong Dictionary" [1].

    New features include:

    (1) context menu with basic text editing functionality for the custom text entry widget
    (2) context menu for the vocabulary treeview, from which one can (3) copy treeview content of selected words, (4) open a window for bulk editing tags of words, and (5) open a window displaying attributes of words

    [1]: codeberg.org/ZelphirKaltstahl/

    #python #tkinter #mandarin #gui #code #programming

  24. I created an actual "release" today, for my Xiaolong Dictionary language learning tool [1].

    I wonder however, why the GNU/Linux built is bigger. Maybe 'cause I ran another command making the executable. Makefile target:

    pyinstaller --clean --onefile --noconsole --add-data "$(TCL_LIBRARY):tcl8.6" --add-data "$(TK_LIBRARY):tk8.6" "$(MODULE)")

    While on Windows I have no idea how to do that.

    [1]: codeberg.org/ZelphirKaltstahl/

    #python #tkinter #matplotlib #pillow #pyinstaller #executable

  25. Progress on gitlogui. Yes, exactly. A minimal UI for git log.

    New:

    - regex or simple search through the shown text
    - commit graph (--graph option of git log) may be shown

    Suggestions of features to add are welcome.😀

    Same for a professional layout suggestion for the seemingly randomly tossed text entries and check boxes of the UI.

    codeberg.org/harald/gitlogui

    #gitlogui #git #git-log #gitk #tkinter #python

  26. Progress on gitlogui. Yes, exactly. A minimal UI to avoid reading the docs for all those who use it not that often, in particular with pickaxe options.

    Now on codeberg: codeberg.org/harald/gitlogui

    Suggestions of features to add are welcome.😀

    #gitlogui #git #git-log #gitk #tkinter #python #tkinter

  27. New project.

    If there is something I can't quite remember: the multitude of git log options. There should be a simple UI which makes this easier. Somewhat like gitk for git in general, but with as many useful options shown as understandable buttons as possible.

    I also wanted to toy with tkinter a bit. The last few hours brought up this minimally functional thing, which seems to be a good start. Suggestions of features to add first are welcome.😀

    #git #git-log #gitk #tkinter #python #gitlogui

  28. Aujourd'hui j'ai appris que si notre application utilisant #python et #tkinter rame sous #gnome c'est à cause d'#ibus et que ça se corrige avec :

    import os
    #disable input methods to improve speed
    os.environ['XMODIFIERS'] = "@im=none"

    github.com/ibus/ibus/issues/23

  29. Aujourd'hui j'ai appris que si notre application utilisant #python et #tkinter rame sous #gnome c'est à cause d'#ibus et que ça se corrige avec :

    import os
    #disable input methods to improve speed
    os.environ['XMODIFIERS'] = "@im=none"

    github.com/ibus/ibus/issues/23

  30. Aujourd'hui j'ai appris que si notre application utilisant #python et #tkinter rame sous #gnome c'est à cause d'#ibus et que ça se corrige avec :

    import os
    #disable input methods to improve speed
    os.environ['XMODIFIERS'] = "@im=none"

    github.com/ibus/ibus/issues/23

  31. Aujourd'hui j'ai appris que si notre application utilisant #python et #tkinter rame sous #gnome c'est à cause d'#ibus et que ça se corrige avec :

    import os
    #disable input methods to improve speed
    os.environ['XMODIFIERS'] = "@im=none"

    github.com/ibus/ibus/issues/23

  32. Aujourd'hui j'ai appris que si notre application utilisant #python et #tkinter rame sous #gnome c'est à cause d'#ibus et que ça se corrige avec :

    import os
    #disable input methods to improve speed
    os.environ['XMODIFIERS'] = "@im=none"

    github.com/ibus/ibus/issues/23

  33. Okay, y'all... running #macOS #ScreenSharing to another headless mini M2 and getting this error when running #Python #Tkinter #TclError code via command line:

    _tkinter.TclError: couldn't connect to display ":0"

    Ideas? I know it prob has something to do w/the screen sharing app's display not being ID 0, but I don't know how to fix it.

    TIA!

  34. heise+ | Die besten Python-Projekte: Spiel programmieren, GUI erstellen, Webseite scrapen

    Die Programmiersprache Python ist einfach zu lernen und wird immer beliebter. Wir zeigen, wie Sie etwa Daten auf Webseiten auslesen oder coole 2D-Spiele coden.
    Die besten Python-Projekte: Spiel programmieren, GUI erstellen, Webseite scrapen
    #Altair #Code #Fitness-Tracker #GUI #Google #GoogleFit #OCR #Pandas #Programmierung #PygameZero #Python #Python-Programmierung #Scraping #ScreenScraping #Skriptsprache #Tesseract #Tkinter #WebScraping #Weltraum-Shooter #grafischeOberfläche