This method is mainly used to configure any widget with some specified options. The default value of this option is FLAT.įollowing are some methods used with PanedWindow widget: Method Name This option indicates the type of border. If we do not specify the height then the height will be calculated by the height of the child widgets. This option represents the width of the widget. The default value of this option is false. To display the handles, the value of this option should be set to true. This option is used to represent the type of border around each of the sash. The default value of this option is 2 pixels. This option indicates the width of the sash. This option is used to represent the padding to be done around each sash.
Entry widget icursor windows#
If we want to place the child windows from top to bottom then the value of this option will be set to VERTICAL.
The value of this option will be set to HORIZONTAL if we want to place the child windows side by side. Also, the handle will always be in square This option represents the size of the handle and its default value is 8 pixels. This option represents the height of the widget. The default value of this option is 8 pixels In horizontal orientation, it is the distance between the top of the sash and the handle. To represents the distance between the handle and the end of the sash we use this option. This option is used to indicate the border width of the widget. This option will convert the mouse pointer to the specified cursor type and it can be set to an arrow, dot, etc. This option represents the background color of the widget. The default value of this option indicates that the trough contains no border and the arrowheads and slider contain the 2-pixel border size. This option is used to represent the 3D border size of the widget. Tkinter PanedWindow Widget Options:įollowing are the various options used with PanedWindow widget: Name of the Option You can use many options to change the look of the PanedWindow and these options are written as comma-separated.
In the above syntax, the master parameter denotes the parent window. The syntax of the PanedWindow widget is given below: W = PanedWindow(master, options) Here is a simple Tkinter application window with three widgets stacked vertically inside a PanedWindow widget. You can implement multiple panes using the PanedWindow widget. The child widgets inside the PanedWindow widget can be resized by the user by moving separator lines sashes using the mouse. This widget is used to implement different layouts in a Python desktop application created using the Tkinter module. It is also known as the Geometry Manager widget. This widget arranges child widgets either in a vertical or in a horizontal manner. In this tutorial, we will cover the Tkinter PanedWindow widget which is mainly a container widget containing one or more than one child widgets which are also known as Panes.