The PanedWindow widget acts like a Container widget which contains one or more child widgets (panes) arranged horizontally or vertically. The child panes can be resized by the user, by moving the separator lines known as sashes by using the mouse.
Each pane contains only one widget. The PanedWindow is used to implement the different layouts in the python applications.
The syntax to use the PanedWindow is given below.
A list of possible options is given below.
||It represents the background color of the widget when it doesn't have the focus.
||It represents the 3D border size of the widget. The default option specifies that the trough contains no border whereas the arrowheads and slider contain the 2-pixel border size.
||It represents the border width of the widget. The default is 2 pixel.
||The mouse pointer is changed to the specified cursor type when it is over the window.
||This option represents the distance between the handle and the end of the sash. For the horizontal orientation, it is the distance between the top of the sash and the handle. The default is 8 pixels.
||It represents the size of the handle. The default size is 8 pixels. However, the handle will always be a square.
||It represents the height of the widget. If we do not specify the height, it will be calculated by the height of the child window.
|8 orient The orient will be set to HORIZONTAL if we want to place the child windows side by side. It can be set to VERTICAL if we want to place the child windows from top to bottom.
||It represents the type of the border. The default is FLAT.
||It represents the padding to be done around each sash. The default is 0.
||It represents the type of the border around each of the sash. The default is FLAT.
||It represents the width of the sash. The default is 2 pixels.
||It is set to True to display the handles. The default value is false.
||It represents the width of the widget. If we don't specify the width of the widget, it will be calculated by the size of the child widgets.
There are the following methods that are associated with the PanedWindow.
||It is used to add a window to the parent window.
||This method is used to get the text present at the specified range.
||It is used to configure the widget with the specified options.