28.10.2021 Views

Python Tutorial ( PDFDrive )

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

index(index)

Returns the absolute value of an index based on the given index.

insert(index [,string]...)

This method inserts strings at the specified index location.

invoke(element)

Invokes a spinbox button.

Example:

Try the following example yourself:

from Tkinter import *

master = Tk()

w = Spinbox(master, from_=0, to=10)

w.pack()

mainloop()

When the above code is executed, it produces the following result:

PanedWindow

A PanedWindow is a container widget that may contain any number of panes, arranged horizontally or vertically.

Each pane contains one widget and each pair of panes is separated by a moveable (via mouse movements)

sash. Moving a sash causes the widgets on either side of the sash to be resized.

Syntax:

Here is the simple syntax to create this widget:

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

Parameters:

• master: This represents the parent window.

• options: Here is the list of most commonly used options for this widget. These options can be used as keyvalue

pairs separated by commas.

Option

Description

TUTORIALS POINT

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!