Adds a Tkinter Frame class 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
Close
Hashes for TKinterManagedFrame-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4df282306733a5bb20c1945530f724e1f194c002ca2ff5e2b164deb389224ec6 |
|
MD5 | ccf0fc3bb9def0376749594e4d6d2ae5 |
|
BLAKE2b-256 | 9c2e12ef5a6a17109779779b52add046c0f04f2f98f1591a4ff40e93a4e337b2 |
Close
Hashes for TKinterManagedFrame-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a1574a3c4edf876b264ef801a8664682b8c19f0ef9e2fd86f9b3857c0629a99 |
|
MD5 | 2bcf22aef072c6f45c58afa1d6d5737c |
|
BLAKE2b-256 | 7cbf7c0ba15bf01781d793934575873e406467d2a8da7c18e5ec8be8c98f0c72 |