TkinterとCustomTkinterで電卓つくって比較してみた
https://qiita.com/Tadataka_Takahashi/items/fa65246ea9f48301c71c?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
Как я написал современный GUI для yt-dlp на Python
Надоело каждый раз лезть в терминал, чтобы скачать видео с YouTube? Мне тоже. Поэтому я сделал нормальный GUI для yt-dlp - без лишних кнопок, с современным интерфейсом и чтобы просто работал. Код на GitHub , готовая сборка тоже есть. Зачем вообще это делать? Да, yt-dlp крутой - качает с кучи сайтов , быстрый, надёжный. Но блин, каждый раз набирать команды в консоли - это не для всех. Особенно когда нужно быстро скачать что-то и не париться с параметрами. Посмотрел на существующие GUI - одни выглядят как из 2005 года, другие напичканы настройками, которые 99% пользователей никогда не трогают. Захотелось сделать что-то простое: вставил ссылку, выбрал качество, скачал. Всё. Что хотел получить: Простоту - минимум кликов от ссылки до файла Нормальный вид - тёмная тема, без уродских кнопок из 90-х Скорость - никаких тормозов и зависаний Работает везде - Windows точно, остальные ОС в планах Не требует установки - скачал exe и пользуешься
#TkInter file dialogs like open file, save, select folder, etc. are very easy, but ugly (actually sub-standard in terms of features) on Linux :(
#tkfiebrowser (https://tkfilebrowser.readthedocs.io/en/stable/) by Juliette Monsel, fixes this :D
...but this adds a project dependency and looks like it doesn't work on MacOS :(
#CustomTkinter doesn't have them at all :(
Do I want to hear about other options? Maybe. But I don't really want to make my students install another dependency and write more than a single line of code to open a file dialog, so I guess I'm out of luck.
Using #py5 (which they will have installed) it is more than a single line of code (which might be ok...), but it uses the #JavaSwing dialog infrastructure, I guess, that look quite ugly on Linux too... I'm really grumpy today.
CustomTkinter is a Python UI-library based on Tkinter, which provides new, modern and fully customizable widgets
Shows a Pythin application window that uses modern looking CustomTKinter widgets They are created and used like normal Tkinter widgets and can also be used in combination with normal Tkinter elements. The widgets and the window colors either adapt to the system appearance or the manually […]
CustomTkinter is a Python UI-library based on Tkinter, which provides new, modern and fully customizable widgets https://gadgeteer.co.za/customtkinter-is-a-python-ui-library-based-on-tkinter-which-provides-new-modern-and-fully-customizable-widgets/