Object oriented TKINTER WIDGETS
Project goals
Object oriented GUI library. Programatically generate common gui items.
Installation
from guiblox import buttonRow, entryCol, theme, listWindow
Getting Started
from guiblox.__main__ import main
main()
Documentation
Entry Column
from guiblox import entryCol
entryDict = {} # Dict for entry column object
entryDict['Entry1'] = 'Data1' # Define Label & Default Val
entryDict['Entry2'] = 'Data2' # Define Label & Default Val
entryDict['Entry3'] = 'Data3' # Define Label & Default Val
root = theme().addColor() # Create GUI object w/ colors
root.entryCol = entryCol(root, entryDict) # Create column of entry fields
### Assign Functions/Behavior
root.entryCol.frame.config(width=100) # Chg frame width
root.entryCol.chg2Enum('entry2', ['Opt1','Opt2']) # Chg entry2 to pull down
root.entryCol.entry2_enum.set('Opt1') # entry2 default value
Button Row
from guiblox import buttonRow
root = theme().addColor() # Create GUI object w/ colors defined.
root.title('GUI Example')
### Create GUI Elements
root.buttnRow = buttonRow(root, 3) # pylint: disable=unused-variable
### Assign Functions/Behavior
root.buttnRow.button0.config(text='foo' ,command=lambda: buttonfunc1(root))
root.buttnRow.button1.config(text='clear',command=lambda: buttonfunc2(root))
root.buttnRow.button2.config(text='baz' ,command=lambda: buttonfunc3(root))
Output TextBoxes
from guiblox import listWindow
root = theme().addColor() # Create GUI object w/ colors
root.title('GUI Example')
### Create GUI Elements
root.TextBox = listWindow(root) # Create bottom text box
root.TextBox.stdOut() # Print --> TextBox
### Assign Functions/Behavior
root.TextBox.listWindow.config(height= 5,width=66)
| listWindow Method | Description |
|---|---|
| listWindow.add_Files | Opens GUI to add files |
| listWindow.clear | Clears listWindow |
| listWindow.getlist | returns contents as list |
| listWindow.getstr | returns contents as string |
| listWindow.stdOut | Redirects Print statements to listWindow |
| listWindow.writeN | Prints text to listWindow |
| listWindow.writeH | Prints text to listWindow w/ Highlight |
Metadata
Release files for guiblox 2022.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| guiblox-2022.1.18.tar.gz | 8.3 kB | Without provenance | Details for guiblox-2022.1.18.tar.gz |
Release files / guiblox-2022.1.18.tar.gz
| Download URL | guiblox-2022.1.18.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b9e7e3dba782f16a74b520b0961eeda2e200b04f0252832f05b6ba04d1ea6af
|
|
BLAKE2b-256 checksum How to use checksums |
6106da0a6affbd713e8309a67b4bb320ef079e2be6c492b2d3f08ebc2b461fea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for guiblox 2022.1.18
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.