Skip to main content

A wrapper of REMI library to build UI front-ends purely using Python.

Project description

This library wraps the popular Python library "REMI" (https://github.com/rawpython/remi) to make easy UI by simply calling functions with arguments for UI placement. Quick Remi enables building building large UI in the least lines of code using pure Python. No HTML or javascript knowledge required.

USAGE:

pip install quickremi

from quickremi.gui import gui as G

Build Frame or Container frame1 = G.create_container(window, H=40, W=45, L=52, T=20, bg='lightblue')

Build Labels lbl = G.create_label(frame1, H=50, W=75, L=5, T=2, bg='ivory')

Build Buttons btn= G.create_button(frame1, H=10, W=15, L=5, T=20, bg='teal', command=clicked_button)

Use the function help menu to read their respective documentation. In all functions, frame, H, W, L, T are positional (mandatory) arguments that determine their position within a container. Other arguments like background colours, font family, size, font colour, text alignment, justifications, border width, radius, style and border colour etc. are optional and can be changed as per use.

Height, Width, Left and Top are % values by default and hence scale as per the size of the device of display. The arugment 'fs' (font size) also scales as per the display device.

Other Widgets in the package: - Drop Down - List Items - Slider - Image - File Uploader - Table - Progress Bar - Entry Field - Date Picker - Label Checkbox (Radio Button) - Spinbox

All the above widgets follow the same syntax. - Frame, Height, Width, Left, Top, and other kwargs whose documentation is available in the help menu.

Widgets like Drop Down, Slider, List Items, Entry Field have listeners which read the input values entered by user.

Example 1: For: Drop Down or Entry or Slider etc.

lst = ['Tiger', 'Lion', 'Jaguar'] dd = G.create_dropdown(frame1, lst, 20, 50, 5, 5, command=on_selection)

Listner function

def on_selection(widget, value): # value will now hold the value of the user selection between tiger lion and jaguar. print(value)

Example 2: For List Items, the listener functions in a different way. Following is the example usage.

lst = ['Apple', 'Mango', 'Guava'] lv = G.create_listview(frame1, lst, 20, 50, 5, 5, command=on_value_selection)

Listener function

def on_value_selection(widget, value): # value is the index number. Hence lv[val].get_text() is used to fetch the actual text value.
val = lv.children[value].get_text()
print(val)

All the other widget operations revolve around these two examples.

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

quickremi-1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

quickremi-1.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file quickremi-1.0.tar.gz.

File metadata

  • Download URL: quickremi-1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for quickremi-1.0.tar.gz
Algorithm Hash digest
SHA256 c7e897d8244facf283104420dda6e381c481f9b597fc4ff11ad79722d11c398e
MD5 2835ffafc41a724937e51400486cd60d
BLAKE2b-256 86f869ed983f908fed2406740bde9c25a220986232da877be57caeb0338b083a

See more details on using hashes here.

File details

Details for the file quickremi-1.0-py3-none-any.whl.

File metadata

  • Download URL: quickremi-1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for quickremi-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 470bbf929397f64cfcc79b1a75f5d23641afe18136741704f6b29bef86c099fe
MD5 5b584588603c0fc3cf2adde964c6cf51
BLAKE2b-256 3be62cc291aa9a40108542f0514c3b1a1b7af650bcde29a4fd5ee07a0fa2f76d

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