#tkinter — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #tkinter, aggregated by home.social.
-
I've been spending a lot of time this past week learning how to write unit tests for #Python #TkInter 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).
https://shallowsky.com/blog/programming/tkinter-unittest.html
-
Как создать калькулятор для расчёта квадратных уравнений на Python с использованием фреймворка Tkinter
Когда мне в школе мне задали сделать итоговый проект для допуска к ОГЭ. Я долго думал над темой проекта, и решил совместить две вещи в которых я хорошо разбираюсь, Квадратные уравнения и мой любимый язык программирования Python. На этапе идеи я сразу понял с помощью чего именно я сделаю свой проект. Изначально у меня получилось разработать консольное приложение, состоящее из бесконечного цикла цикла и простого алгоритма который спрашивает тип уравнения: Полное квадратное/неполное квадратное, и после выбора мы могли вводить a, b и c/a и b. Эту версию проекта я «накидал» за один вечер, когда я показал результат учителю, он порекомендовал мне сделать графический интерфейс, я моментально вспомнил Python библиотеку Tkinter для создания графического интерфейса. Тут уже пришлось покумекать как именно это сделать, ведь на практике я еще на тот момент не сталкивался с этим фреймворком. В ходе поиска документации по данному фреймворку я столкнулся с тем что все материала были содержали слишком много «воды». На тот момент нейросети были чем то новым и неизведанным, как раз так совпало.
-
Развиваем проект: фильтрация, поиск и экспорт данных
В прошлой части мы превратили простое приложение для заметок в удобный инструмент с цветовой индикацией, сортировкой и возможностью редактирования. Однако, когда задач становится много, даже самый красивый список может превратиться в нечитаемую ленту. Согласитесь, сложно ориентироваться, когда нужно найти одну важную задачу среди сотни выполненных. В этой статье мы добавим инструменты профессионального управления:
https://habr.com/ru/articles/1014408/
#Python #tkinter #desktopприложение #csv #pdf #цветовая_индикация #выпадающий_список
-
Развиваем проект: добавляем новые возможности в десктопное приложение
Наше приложение получилось достаточно удобным, но давайте сделаем его ещё функциональнее. В предыдущей части мы заложили основу: работа с JSON, CRUD-операции и базовый интерфейс. Теперь пришло время добавить те самые «плюшки», которые превращают учебный проект в полноценный инструмент. Мы добавим четыре важные функции:
https://habr.com/ru/articles/1013222/
#Python #Разработка_desktopприложений #Программирование #Tkinter #Создание_приложений_для_начинающих
-
Вспоминает что такое CRUD на примере десктопного менеджера на Python
Многие новички, которые только начинают свою карьеру в программировании, не совсем понимают что такое CRUD. CRUD (Create, Read, Update, Delete) - термин, исходя из обычного перевода (Создавать, читать, обновлять, удалять), обозначает четыре базовые операции для управления данными в системах. Я хочу, попытаться, объяснить на простом примере что же это такое и как с ним можно работать. Сегодня мы напишем классический десктопный менеджер задач с графическим интерфейсом. Это отличный способ изучить и закрепить:
https://habr.com/ru/articles/1013114/
#Python #Tkinter #десктопное_приложение #менеджер_задач #CRUD #JSON #GUI #программирование_для_начинающих #создание_приложений
-
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.
-
Je suis sûr que vous critiquez toutes et tous #Tkinter, mais j'ai un de #MesÉleves, il est trop fort avec ⤵️
-
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]: https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/releases/tag/v0.6.0
-
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.
-
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]: https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/releases
-
Make buttons grow and shrink when the mouse moves over them with tkinter in Python
-
Add buttons to a row container made with tkinter in Python
-
Make a row container with tkinter in Python
A handy trick that's already part of tkinter.
-
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.
-
Make an improved interactive unit converter with tkinter in Python
-
Make an interactive unit converter with tkinter in Python
-
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.
-
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]: https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/releases/tag/v0.4.2
-
I like the possibility to "tear off" a menu in #tkinter. I think I have not seen that in any other GUI framework yet.
-
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]: https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/releases/tag/v0.4
-
Window Manager: #BSPWM
Operating System: #Ubuntu 24.04.2 LTS
Programming Language: #Python 3.12This 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.
-
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 […] -
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
-
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
-
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]: https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/releases/tag/v0.3
-
Añadiendo interfaz con #tkinter
.
#NeoVault #programming #code #coding #python #linux #freesoftware #hacktheplanet -
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]: https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/releases
#python #tkinter #matplotlib #pillow #pyinstaller #executable
-
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 shownSuggestions 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.
-
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: https://codeberg.org/harald/gitlogui
Suggestions of features to add are welcome.😀
-
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.😀
-
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!
-
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