Adds a Tkinter Frame subclass that offers simple update functionality
Project description
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 emptyFrame
objects.initialIndex
: the firstFrame
that will be displayed.- if this is not present in
nameList
, aFrame
will be created to associate with it.
- if this is not present in
options
: takes any number of keyword arguments.- see the documentation for
tkinter.Frame
for 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 requestedFrame
is stored
- returns a reference to the
Frame
at the givenkey
. @raises
KeyError
: ifkey
is not being managed
- args
-
addOption()
- args
inputFrame
: theFrame
object to be addedkey
: the location at which `inputFrame' will be stored in the manager.
@raises KeyError
: ifkey
is already being managed- use
updateOption()
to change an already managed frame.
- use
- args
-
updateOption()
- args
inputFrame
: the frame to place atkey
key
: the location at which to placeinputFrame
@raises KeyError
: ifkey
is not being managed
- args
-
changeOption()
- args
key
: the the key of the desiredFrame
.
@raises KeyError
ifkey
is not being managed.
- args
-
setOption()
- args
inputFrame
: theFrame
to be addedkey
: the key at which to storeinputFrame
@raises KeyError
ifkey
is already being managed
- args
-
removeOption()
- args
key
: the key value at which theFrame
to be deleted is storeddefault
: (defaults to an arbitrary frame), the key value of the frame that will be displayed ifkey
references the currently displayedFrame
@raises KeyError
if eitherkey
ordefault
are not being managed.
- args
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Tkinter Managed Frame-1.0.3.tar.gz
.
File metadata
- Download URL: Tkinter Managed Frame-1.0.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e52cdb193baa7255346a771846a9eee5ca88789f449ed38647a1bf1dfbf8ba6f |
|
MD5 | 43deefb10ce64e96a8058c2484f99fa6 |
|
BLAKE2b-256 | d14838aeafa1610f546f33e1d6f5c9eddd5382aa285fe979e438c73ada8b911d |
File details
Details for the file Tkinter_Managed_Frame-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: Tkinter_Managed_Frame-1.0.3-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84b3c5880fbef98ff7f3f0f0606b6510d7c50448b250420b51769cf7e58fbb2a |
|
MD5 | 723e57d832028b7f35710b25ae2146d1 |
|
BLAKE2b-256 | 6b9b7e9cd94396a82f4c646399b181c08c922052e90feb3df8e4c78bf8d761e4 |