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.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

quickremi-1.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quickremi-1.1.tar.gz
Algorithm Hash digest
SHA256 3f1a2c3eb540089d17d5bfd3badedae0673b50405c5d226ff8ab6b5a8fad036e
MD5 9d8bc413b8c86ff616fedc9fb3b37e1e
BLAKE2b-256 7670b7b5cf2d5d705e6ec19f945d8316a9dfcd30847e06b956e5e3c5eed7225d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quickremi-1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eaa0499d6c1a732cf1bab2d43cff1aa36a1298c2771d2188ad97335fcec0a752
MD5 23c0bfa732fe2eabdcc75672e0f9f9de
BLAKE2b-256 a143183a3aaf25af3024e9cd172e0d8e5f634b6e4d3841c68d29f5c735798cce

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