Skip to content

Accordian

Parameters

NameTypeDescription
mastertkinter.Tk
textstr
imagestr
textvariabletkinter.StringVar
bgstr
background_headerstr
disabled_foreground_headerstr
active_background_headerstr
active_foreground_headerstr
foreground_headerstr
show_iconstr
hide_iconstr
namestr
variablestr
statestr
fontstr

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()

example-Accordion

Not associated with or approved by Mojang Studios or Microsoft