def __init__(self, master=None, cnf={}, **kw):
"""Construct a toplevel widget with the parent MASTER.
- Valid option names: background, bd, bg, borderwidth, class,
- colormap, container, cursor, height, highlightbackground,
- highlightcolor, highlightthickness, menu, relief, screen, takefocus,
- use, visual, width."""
+ Valid option names: background, backgroundimage (Tk 9.0+), bd, bg,
+ bgimg (Tk 9.0+), borderwidth, class, colormap, container,
+ cursor, height, highlightbackground, highlightcolor,
+ highlightthickness, menu, padx, pady, relief, screen,
+ takefocus, tile (Tk 9.0+), use, visual, width."""
if kw:
cnf = _cnfmerge((cnf, kw))
extra = ()
"""Construct a checkbutton widget with the parent MASTER.
Valid option names: activebackground, activeforeground, anchor,
- background, bd, bg, bitmap, borderwidth, command, cursor,
- disabledforeground, fg, font, foreground, height,
- highlightbackground, highlightcolor, highlightthickness, image,
- indicatoron, justify, offvalue, onvalue, padx, pady, relief,
- selectcolor, selectimage, state, takefocus, text, textvariable,
- underline, variable, width, wraplength."""
+ background, bd, bg, bitmap, borderwidth, command, compound,
+ cursor, disabledforeground, fg, font, foreground, height,
+ highlightbackground, highlightcolor, highlightthickness,
+ image, indicatoron, justify, offrelief, offvalue, onvalue,
+ overrelief, padx, pady, relief, selectcolor, selectimage,
+ state, takefocus, text, textvariable, tristateimage,
+ tristatevalue, underline, variable, width, wraplength."""
Widget.__init__(self, master, 'checkbutton', cnf, kw)
def _setup(self, master, cnf):
"""Construct an entry widget with the parent MASTER.
Valid option names: background, bd, bg, borderwidth, cursor,
- exportselection, fg, font, foreground, highlightbackground,
- highlightcolor, highlightthickness, insertbackground,
- insertborderwidth, insertofftime, insertontime, insertwidth,
- invalidcommand, invcmd, justify, relief, selectbackground,
- selectborderwidth, selectforeground, show, state, takefocus,
- textvariable, validate, validatecommand, vcmd, width,
- xscrollcommand."""
+ disabledbackground, disabledforeground, exportselection, fg,
+ font, foreground, highlightbackground, highlightcolor,
+ highlightthickness, insertbackground, insertborderwidth,
+ insertofftime, insertontime, insertwidth, invalidcommand,
+ invcmd, justify, locale (Tk 9.1+), placeholder (Tk 9.0+),
+ placeholderforeground (Tk 9.0+), readonlybackground, relief,
+ selectbackground, selectborderwidth, selectforeground, show,
+ state, takefocus, textvariable, validate, validatecommand,
+ vcmd, width, xscrollcommand."""
Widget.__init__(self, master, 'entry', cnf, kw)
def delete(self, first, last=None):
def __init__(self, master=None, cnf={}, **kw):
"""Construct a frame widget with the parent MASTER.
- Valid option names: background, bd, bg, borderwidth, class,
- colormap, container, cursor, height, highlightbackground,
- highlightcolor, highlightthickness, relief, takefocus, visual, width."""
+ Valid option names: background, backgroundimage (Tk 9.0+), bd, bg,
+ bgimg (Tk 9.0+), borderwidth, class, colormap, container,
+ cursor, height, highlightbackground, highlightcolor,
+ highlightthickness, padx, pady, relief, takefocus, tile (Tk
+ 9.0+), visual, width."""
cnf = _cnfmerge((cnf, kw))
extra = ()
if 'class_' in cnf:
WIDGET-SPECIFIC OPTIONS
- height, state, width
+ compound, height, state,
+ textangle (Tk 9.1+), width
"""
Widget.__init__(self, master, 'label', cnf, kw)
def __init__(self, master=None, cnf={}, **kw):
"""Construct a listbox widget with the parent MASTER.
- Valid option names: background, bd, bg, borderwidth, cursor,
- exportselection, fg, font, foreground, height, highlightbackground,
- highlightcolor, highlightthickness, relief, selectbackground,
- selectborderwidth, selectforeground, selectmode, setgrid, takefocus,
- width, xscrollcommand, yscrollcommand, listvariable."""
+ Valid option names: activestyle, background, bd, bg, borderwidth,
+ cursor, disabledforeground, exportselection, fg, font,
+ foreground, height, highlightbackground, highlightcolor,
+ highlightthickness, inactiveselectbackground (Tk 9.1+),
+ inactiveselectforeground (Tk 9.1+), justify, listvariable,
+ relief, selectbackground, selectborderwidth, selectforeground,
+ selectmode, setgrid, state, takefocus, width, xscrollcommand,
+ yscrollcommand."""
Widget.__init__(self, master, 'listbox', cnf, kw)
def activate(self, index):
"""Construct menu widget with the parent MASTER.
Valid option names: activebackground, activeborderwidth,
- activeforeground, background, bd, bg, borderwidth, cursor,
+ activeforeground, activerelief (Tk 9.0+), background, bd, bg,
+ borderwidth, cursor,
disabledforeground, fg, font, foreground, postcommand, relief,
selectcolor, takefocus, tearoff, tearoffcommand, title, type."""
Widget.__init__(self, master, 'menu', cnf, kw)
"""Menubutton widget, obsolete since Tk8.0."""
def __init__(self, master=None, cnf={}, **kw):
+ """Construct a menubutton widget with the parent MASTER.
+
+ Valid option names: activebackground, activeforeground, anchor,
+ background, bd, bg, bitmap, borderwidth, compound, cursor,
+ direction, disabledforeground, fg, font, foreground, height,
+ highlightbackground, highlightcolor, highlightthickness,
+ image, indicatoron, justify, menu, padx, pady, relief, state,
+ takefocus, text, textvariable, underline, width, wraplength."""
Widget.__init__(self, master, 'menubutton', cnf, kw)
"""Message widget to display multiline text. Obsolete since Label does it too."""
def __init__(self, master=None, cnf={}, **kw):
+ """Construct a message widget with the parent MASTER.
+
+ Valid option names: anchor, aspect, background, bd, bg, borderwidth,
+ cursor, fg, font, foreground, highlightbackground,
+ highlightcolor, highlightthickness, justify, padx, pady,
+ relief, takefocus, text, textvariable, width."""
Widget.__init__(self, master, 'message', cnf, kw)
"""Construct a radiobutton widget with the parent MASTER.
Valid option names: activebackground, activeforeground, anchor,
- background, bd, bg, bitmap, borderwidth, command, cursor,
- disabledforeground, fg, font, foreground, height,
- highlightbackground, highlightcolor, highlightthickness, image,
- indicatoron, justify, padx, pady, relief, selectcolor, selectimage,
- state, takefocus, text, textvariable, underline, value, variable,
- width, wraplength."""
+ background, bd, bg, bitmap, borderwidth, command, compound,
+ cursor, disabledforeground, fg, font, foreground, height,
+ highlightbackground, highlightcolor, highlightthickness,
+ image, indicatoron, justify, offrelief, overrelief, padx,
+ pady, relief, selectcolor, selectimage, state, takefocus,
+ text, textvariable, tristateimage, tristatevalue, underline,
+ value, variable, width, wraplength."""
Widget.__init__(self, master, 'radiobutton', cnf, kw)
def deselect(self):
WIDGET-SPECIFIC OPTIONS
- autoseparators, height, maxundo,
- spacing1, spacing2, spacing3,
- state, tabs, undo, width, wrap,
+ autoseparators, blockcursor, endline,
+ height, inactiveselectbackground,
+ insertunfocussed, locale (Tk 9.1+), maxundo,
+ spacing1, spacing2, spacing3, startline,
+ state, tabs, tabstyle, undo, width, wrap,
"""
Widget.__init__(self, master, 'text', cnf, kw)
buttondownrelief, buttonuprelief,
command, disabledbackground,
disabledforeground, format, from,
- invalidcommand, increment,
+ invalidcommand, invcmd, increment,
+ locale (Tk 9.1+),
+ placeholder (Tk 9.0+),
+ placeholderforeground (Tk 9.0+),
readonlybackground, state, to,
- validate, validatecommand values,
+ validate, validatecommand, vcmd, values,
width, wrap,
"""
Widget.__init__(self, master, 'spinbox', cnf, kw)
WIDGET-SPECIFIC OPTIONS
handlepad, handlesize, opaqueresize,
- sashcursor, sashpad, sashrelief,
- sashwidth, showhandle,
+ proxybackground, proxyborderwidth,
+ proxyrelief, sashcursor, sashpad,
+ sashrelief, sashwidth, showhandle,
"""
Widget.__init__(self, master, 'panedwindow', cnf, kw)
STANDARD OPTIONS
- class, compound, cursor, image, state, style, takefocus,
- text, textvariable, underline, width
+ class, compound, cursor, image, justify (Tk 9.0+), padding,
+ state, style, takefocus, text, textvariable, underline, width
WIDGET-SPECIFIC OPTIONS
STANDARD OPTIONS
- class, compound, cursor, image, state, style, takefocus,
- text, textvariable, underline, width
+ class, compound, cursor, image, justify (Tk 9.0+), padding,
+ state, style, takefocus, text, textvariable, underline, width
WIDGET-SPECIFIC OPTIONS
WIDGET-SPECIFIC OPTIONS
- exportselection, invalidcommand, justify, show, state,
- textvariable, validate, validatecommand, width
+ background, exportselection, font, foreground, invalidcommand,
+ justify, locale (Tk 9.1+), placeholder (Tk 9.0+),
+ placeholderforeground (Tk 9.0+), show, state, textvariable,
+ validate, validatecommand, width
VALIDATION MODES
STANDARD OPTIONS
- class, cursor, style, takefocus
+ class, cursor, style, takefocus, xscrollcommand
WIDGET-SPECIFIC OPTIONS
- exportselection, justify, height, postcommand, state,
- textvariable, values, width
+ background, exportselection, font, foreground, height,
+ invalidcommand, justify, locale (Tk 9.1+), placeholder (Tk 9.0+),
+ placeholderforeground (Tk 9.0+), postcommand, show, state,
+ textvariable, validate, validatecommand, values, width
"""
Entry.__init__(self, master, "ttk::combobox", **kw)
STANDARD OPTIONS
- class, compound, cursor, image, style, takefocus, text,
- textvariable, underline, width
+ class, compound, cursor, image, state, style, takefocus,
+ text, textvariable, underline, width
WIDGET-SPECIFIC OPTIONS
- anchor, background, font, foreground, justify, padding,
- relief, text, wraplength
+ anchor, background, borderwidth, font, foreground, justify,
+ padding, relief, text, textangle (Tk 9.1+), wraplength
"""
Widget.__init__(self, master, "ttk::label", kw)
class, cursor, style, takefocus
WIDGET-SPECIFIC OPTIONS
- labelanchor, text, underline, padding, labelwidget, width,
- height
+
+ borderwidth, height, labelanchor, labelwidget, padding,
+ relief, text, underline, width
"""
Widget.__init__(self, master, "ttk::labelframe", kw)
STANDARD OPTIONS
- class, compound, cursor, image, state, style, takefocus,
- text, textvariable, underline, width
+ class, compound, cursor, image, justify (Tk 9.0+), padding,
+ state, style, takefocus, text, textvariable, underline, width
WIDGET-SPECIFIC OPTIONS
STANDARD OPTIONS
- class, cursor, style, takefocus
+ anchor (Tk 9.0+), class, cursor, font (Tk 9.0+),
+ foreground (Tk 9.0+), justify (Tk 9.0+), style, takefocus,
+ text (Tk 9.0+), wraplength (Tk 9.0+)
WIDGET-SPECIFIC OPTIONS
STANDARD OPTIONS
- class, compound, cursor, image, state, style, takefocus,
- text, textvariable, underline, width
+ class, compound, cursor, image, justify (Tk 9.0+), padding,
+ state, style, takefocus, text, textvariable, underline, width
WIDGET-SPECIFIC OPTIONS
STANDARD OPTIONS
- class, cursor, style, takefocus
+ class, cursor, state, style, takefocus
WIDGET-SPECIFIC OPTIONS
WIDGET-SPECIFIC OPTIONS
- to, from_, increment, values, wrap, format, command
+ background, command, exportselection, font, foreground,
+ format, from_, increment, justify, locale (Tk 9.1+),
+ placeholder (Tk 9.0+), placeholderforeground (Tk 9.0+), show,
+ state, textvariable, to, values, width, wrap
"""
Entry.__init__(self, master, "ttk::spinbox", **kw)
WIDGET-SPECIFIC OPTIONS
- columns, displaycolumns, height, padding, selectmode, show
+ columns, displaycolumns, headingheight (Tk 9.1+), height,
+ padding, rowheight (Tk 9.1+), selectmode, selecttype (Tk 9.0+),
+ show, striped (Tk 9.0+), titlecolumns (Tk 9.0+),
+ titleitems (Tk 9.0+)
ITEM OPTIONS