TKinter Managed Frames
Adds a Frame widget with a built in content manager.
Installation
Download from PYPI.
pip install TKinterManagedFrame
or
python -m pip install TKinterManagedFrame
Methods
-
__init__()- args
master: a tkinter widget that is capable of having children- this includes
Tk,Frame, andTopLevel
- this includes
nameList: A list of names that will be associated with emptyFrameobjects.initialIndex: the firstFramethat will be displayed.- if this is not present in
nameList, aFramewill be created to associate with it.
- if this is not present in
options: takes any number of keyword arguments.- see the documentation for
tkinter.Framefor the full list of options.
- see the documentation for
- args
-
getCurrentFrameKey()- returns the key of the currently displayed
Frame.
- returns the key of the currently displayed
-
getCurrentFrame()- returns a reference to the currently displayed
Frame
- returns a reference to the currently displayed
-
getFrameAtKey()- args
key: the key at which the requestedFrameis stored
- returns a reference to the
Frameat the givenkey. @raisesKeyError: ifkeyis not being managed
- args
-
addOption()- args
inputFrame: theFrameobject to be addedkey: the location at which `inputFrame' will be stored in the manager.
@raises KeyError: ifkeyis already being managed- use
updateOption()to change an already managed frame.
- use
- args
-
updateOption()- args
inputFrame: the frame to place atkeykey: the location at which to placeinputFrame
@raises KeyError: ifkeyis not being managed
- args
-
changeOption()- args
key: the the key of the desiredFrame.
@raises KeyErrorifkeyis not being managed.
- args
-
setOption()- args
inputFrame: theFrameto be addedkey: the key at which to storeinputFrame
@raises KeyErrorifkeyis already being managed
- args
-
removeOption()- args
key: the key value at which theFrameto be deleted is storeddefault: (defaults to an arbitrary frame), the key value of the frame that will be displayed ifkeyreferences the currently displayedFrame
@raises KeyErrorif eitherkeyordefaultare not being managed.
- args
Metadata
Release files for TKinterManagedFrame 0.1.0
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 |
|---|---|---|---|---|
| TKinterManagedFrame-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for TKinterManagedFrame-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| TKinterManagedFrame-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for TKinterManagedFrame-0.1.0-py3-none-any.whl |
Total release size: 17.9 kB
Release files / TKinterManagedFrame-0.1.0.tar.gz
| Download URL | TKinterManagedFrame-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4df282306733a5bb20c1945530f724e1f194c002ca2ff5e2b164deb389224ec6
|
|
BLAKE2b-256 checksum How to use checksums |
9c2e12ef5a6a17109779779b52add046c0f04f2f98f1591a4ff40e93a4e337b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
|
Release files / TKinterManagedFrame-0.1.0-py3-none-any.whl
| Download URL | TKinterManagedFrame-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a1574a3c4edf876b264ef801a8664682b8c19f0ef9e2fd86f9b3857c0629a99
|
|
BLAKE2b-256 checksum How to use checksums |
7cbf7c0ba15bf01781d793934575873e406467d2a8da7c18e5ec8be8c98f0c72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
|
Security for TKinterManagedFrame 0.1.0
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.