Skip to main content

A Pythonic Wrapper for Tkinter

I’ve always had a love/hate relationship with Tkinter. On the one hand, it almost always comes with Python, which makes it the easiest option for making a GUI in Python. On the other hand, it’s one of the least Pythonic modules in existance.

So I’ve decided to write and share this - FinGUI. It’s a GUI package for Python written in pure Python, meaning it’s trivial to install, unlike pretty much every other GUI package for Python.

Installation

Install via pip:

$ pip install fingui

Done.

If you insist on the (slightly) harder way of installing, from source, you know how to do it already and don’t need my help.

The most up-to-date version of this library can be found on github at https://github.com/TaylorSMarks/FinGUI

Quick Start

Once you’ve installed, you can really quickly verified that it works with just this:

>>> from fingui import Entry
>>> e = Entry()
>>> e.set('Hello World!')

That’ll work right from your command line. You can also drop the same code into a script and run it with no modification.

Note the boilerpoint we didn’t deal with, because it’s all automatically handled:
  • We didn’t call mainloop().

  • We didn’t need to create a root object (although we could have).

  • We didn’t need to call pack().

Also note that Entry has a set() method! Unlike the variant in Tkinter, ours has the methods you would expect.

The toplevel example.py file demonstrates how you can combine the Entry and Menu classes to quickly make a polished AutocompletePathEntry class in under 50 lines of code.

Documentation

I’ve tried to include docstrings with all the functions and classes, so things like this should work:

>>> import fingui
>>> help(fingui)

If this project grows large enough, I’ll try to create some more formal documentation for it.

Requirements

FinGUI has been tested on Python 2.7 on OS X 10.11 and Windows 7. It is intended to work on both Python 2.6+ and 3.2+, with any OS that supports Tkinter. It probably falls short on Python 3; I wouldn’t know because of how rarely I touch it. Please submit pull requests to fix anything that doesn’t work on Python 3.

Metadata

Release files for fingui 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fingui 0.2.4
File Size Uploaded Provenance Actions
fingui-0.2.4.tar.gz 8.5 kB Without provenance Details for fingui-0.2.4.tar.gz

Release files / fingui-0.2.4.tar.gz

Download URL fingui-0.2.4.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
108c8123748880b852dee961e483833395d9bf9ec1aa839076993088a0760697
BLAKE2b-256 checksum
How to use checksums
e9669f3322ee1044c38416342fb514acb14110406d7585e072ba9830968e6176
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for fingui 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page