A collapsible pane, as the name suggests, is a pane which can be collapsed. User can expand pane so that they can perform some task and when task is completed, pane can be collapsed.
In Tkinter, Collapsible pane is a container with an embedded button-like control which is used to expand or collapse this container.
Frame Class Checkbutton Class Styling in widgets configure() method
CollapsiblePane class –
CollapsiblePane widget is used to store any other widgets inside of it. It can be toggled on or off, so widgets inside of it aren’t always shown.
parent =The parent of the widget.
expanded_text =The text shown on the Button when the pane is open.
collapsed_text =The text shown on the Button when the pane is closed.
_activate() =Checks the value of variable and shows or hides the Frame.
toggle() =Switches the LabelFrame to the opposite state.
self_button =The Button that toggles the Frame.
frame =The Frame that holds the widget.
_separator =The Separator.
Program to demonstrate use of CollapsiblePane –
- Python GUI - tkinter
- RadioButton in Tkinter | Python
- Python: Age Calculator using Tkinter
- Python | after method in Tkinter
- Different messages in Tkinter | Python
- Python | pack() method in Tkinter
- Tracing Tkinter variables in Python
- Python | place() method in Tkinter
- Python | Add image on a Tkinter button
- Python | grid() method in Tkinter
- Python | Simple calculator using Tkinter
- Python | Create a GUI Marksheet using Tkinter
- Python | winfo_ismapped() and winfo_exist() in Tkinter
- Python | Add style to tkinter button
- minsize() method in Tkinter | Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : nidhi_biet