Accordian
Parameters
Name | Type | Description |
---|---|---|
master | tkinter.Tk | |
text | str | |
image | str | |
textvariable | tkinter.StringVar | |
bg | str | |
background_header | str | |
disabled_foreground_header | str | |
active_background_header | str | |
active_foreground_header | str | |
foreground_header | str | |
show_icon | str | |
hide_icon | str | |
name | str | |
variable | str | |
state | str | |
font | str |
Methods
configure
update
updates the icons
show
Expand the accordion
hide
Shrink the accordion
grid_configure
place_configure
pack_configure
Example
py
import tkinter
import tkinterplus
root = tkinter.Tk()
widget = tkinterplus.Accordion(root, text='Accordion')
tkinter.Label(widget, text='Hello World').pack()
widget.pack()
root.mainloop()