top of page

Python Tkinter

Public·1 member

Tkinter Tutorial 13 : Tkinter Widget methods and Grid Geometry Manager

he following methods are provided by all widgets (including the root window).

The root window and other Toplevel windows provide additional methods. See the Window Methods section for more information.


Patterns

Configuration

w.config(option=value)
value = w.cget("option")
k = w.keys()

45 Views

Tkinter Tutorial: 12 | Tkinter Spinbox, Text Widget

The Spinbox widget is a variant of the standard Tkinter Entry widget, which can be used to select from a fixed number of values.


Syntax:

w = Spinbox( master, option, ... )

here:

  • master − This represents the parent window.

  • options − Here is the list of most commonly used options for this widget.


122 Views

Tkinter Tutorial 11: Tkinter Scale, Scrollbar Widget

The Scale widget allows the user to select a numerical value by moving a “slider” knob along a scale.


Syntax:

S = Scale(root, bg, fg, bd, command, orient, from_, to, ..) 

Option Parameters

  • root – root window.

  • bg – background colour


83 Views

Tkinter Tutorial: 10 | Tkinter PanedWindow, Tkinter Radiobutton

The PanedWindow widget is a geometry manager widget, which can contain one or more child widgets (“panes”).


Syntax:

w = PanedWindow( master, option, ... )

Here:

  • master − This represents the parent window.

  • options − Here is the list of most commonly used options for this widget.


26 Views
bottom of page