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.

disabledbackground

disabledforeground

Fg

Font

Format

from_

Justify

Relief

repeatdelay

repeatinterval

State

textvariable

To

Validate

validatecommand

Values

Vcmd

The background color to use when the widget is disabled.

The text color to use when the widget is disabled.

Text color.

The font to use in this widget.

Format string. No default value.

The minimum value. Used together with to to limit the spinbox range.

Default is LEFT

Default is SUNKEN.

Together with repeatinterval, this option controls button auto-repeat. Both values are given

in milliseconds.

See repeatdelay.

One of NORMAL, DISABLED, or "readonly". Default is NORMAL.

No default value.

See from.

Validation mode. Default is NONE.

Validation callback. No default value.

A tuple containing valid values for this widget. Overrides from/to/increment.

Same as validatecommand.

Width Widget width, in character units. Default is 20.

Wrap

If true, the up and down buttons will wrap around.

xscrollcommand

Methods:

Spinbox objects have these methods:

Methods & Description

Used to connect a spinbox field to a horizontal scrollbar. This option should be set to the

set method of the corresponding scrollbar.

delete(startindex [,endindex])

This method deletes a specific character or a range of text.

get(startindex [,endindex])

This method returns a specific character or a range of text.

identify(x, y)

Identifies the widget element at the given location.

TUTORIALS POINT

Simply Easy Learning

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

Saved successfully!

Ooh no, something went wrong!