Giter Site home page Giter Site logo

tkgui's Introduction

tkinter GUI demos

Comparing various tkinter GUI packages

  • staight tkinter (tkdemo.py)
  • ttkthemes ThemedTK (tkdemottk.py)
  • ttkbootstrap (tkdemoBoots.py)
  • awthemes (tkawdark.py)
  • Sun Valley ttk (tkdemoSV.py)

Here I have prepared a python3 program with a handful of typical widgets. The same program is used to showcase the straight tkinter GUI style, and four other GUI packages written for python/tkinter.

The premier GUI libraries for Python would be GTK3 and QT. Both of these are more difficult to learn than tkinter. GTK does not work well outside of Linux.

In my opinion tkinter works for the programmer who needs to write a solid GUI application, but not necessarily an enterprise level application.

The tkinter package (“Tk interface”) is the standard Python interface to the Tcl/Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, including macOS, as well as on Windows systems. Python/tkinter programs work almost flawlessly (without alteration) across different OS.

ttkbootstrap has more modern-familiar features than the other modules here. The ttkthemes module is older, and has some very attractive themes. Although not particularly attractive, the "vista" ttktheme is extremely similar to the Windows 10/11 light theme.

To try these demos you'll need to have tkinter installed with Python3.x. The 'requirements.txt' file has the other libraries you'll need.

Note: my demo program is only for displaying widgets, and switching between themes.


Learn more ...

tkinter - Python interface to Tcl/Tk <=> https://docs.python.org/3/library/tkinter.html
ttkbootstrap - ttkbootstrap <=> https://ttkbootstrap.readthedocs.io/en/latest/
Style guide - ttkbootstrap <=> https://ttkbootstrap.readthedocs.io/en/latest/styleguide/
Definitions - ttkbootstrap <=> https://ttkbootstrap.readthedocs.io/en/latest/themes/definitions/
ttkbootstrap - PyPI <=> https://pypi.org/project/ttkbootstrap/
ttkthemes v3.2.2 documentation <=> https://ttkthemes.readthedocs.io/en/latest/
List of ttk Themes <=> https://wiki.tcl-lang.org/page/List+of+ttk+Themes
Sun Valley visual styles <=> https://github.com/rdbende/Sun-Valley-ttk-theme
awthemes <=> https://wiki.tcl-lang.org/page/awthemes

tkgui's People

Contributors

mleidel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.