Skip to main content

This provides a set tools for simple creation of graphical user interfaces for Python based on the tkinter library. The main focus for the GUIs is assumed to be on overhead imaging applications.

Project description

Tk_Builder

The goal encouraging this project was to introduce the capability for fast and simple prototyping to enable research. The decision was made to use tkinter for this capability. The particulars of this choice are entirely pragmatic. Most importantly, tkinter is well supported for essentially every architecture that Python is supported, and there are no complicating factors in licensing, configuration, or installation.

For better or for worse, tkinter will work on essentially any government system with a viable Python environment right out of the box. The same cannot generally be said for the other popular GUI frameworks like QT, WX, or GTK. This provides a set tools for simple creation of graphical user interfaces for Python based on the tkinter library. The main focus for the GUIs is assumed to be on overhead imaging applications.

The ImagePanel and ImageCanvas classes contain functionality to save figures to numpy arrays and to disk. For many user facing applications this would be accomplished by using the save canvas button provided in an ImagePanel. This features saved all image and vector data displayed within an image panel. If a user wishes to save figures this way, then it will be saved as a postscript or .ps file, which will probably be sort of useless without the ghostscript application.

Origins

This was developed to enable simple prototyping of graphical user interfaces useful in conjunction with SarPy project, and was developed at the National Geospatial-Intelligence Agency (NGA). The software use, modification, and distribution rights are stipulated within the MIT license.

Dependencies

The core library functionality depends only on tkinter, numpy, pillow, matplotlib, scipy, and minor dependence on sarpy, all of which can be installed using conda or pip. Note that tkinter is part of the standard distribution on some platforms, and has to be installed separately on others.

Installation

From PyPI, install using pip (may require escalated privileges e.g. sudo):

pip install tk_builder

Note that here pip represents the pip utility for the desired Python environment.

From the top level of a cloned version of this repository, install for all users of your environment (may require escalated privileges, e.g. sudo):

python setup.py install

Again, python here represents the executible associated with the desired Python environment.

For more verbose instructions for installing from source, such as how to perform an install applicable for your user only and requiring no escalated privileges, see here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tk_builder-1.1.12.tar.gz (54.7 kB view details)

Uploaded Source

File details

Details for the file tk_builder-1.1.12.tar.gz.

File metadata

  • Download URL: tk_builder-1.1.12.tar.gz
  • Upload date:
  • Size: 54.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for tk_builder-1.1.12.tar.gz
Algorithm Hash digest
SHA256 954f71a0b8c1d1711fa906f4dd859ddd91fe60486ab6cf3232ec6220df45d504
MD5 ad7a12038e976b5fc6801f5d1f93ec0c
BLAKE2b-256 93df3094b6d137a145da926028de21658426ed42e840e4bf5066edce0572d7d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page