Lines Matching refs:kw
96 def _format_elemcreate(etype, script=False, *args, **kw):
97 """Formats args and kw according to the given element factory etype."""
118 opts = _format_optdict(kw, script)
350 def configure(self, style, query_opt=None, **kw):
354 Each key in kw is an option and each value is either a string or
357 kw[query_opt] = None
358 result = _val_or_dict(self.tk, kw, self._name, "configure", style)
363 def map(self, style, query_opt=None, **kw):
367 Each key in kw is an option and each value should be a list or a
375 result = self.tk.call(self._name, "map", style, *_format_mapdict(kw))
435 def element_create(self, elementname, etype, *args, **kw):
437 spec, opts = _format_elemcreate(etype, False, *args, **kw)
506 def __init__(self, master, widgetname, kw=None):
527 tkinter.Widget.__init__(self, master, widgetname, kw=kw)
538 def instate(self, statespec, callback=None, *args, **kw):
543 then it will be invoked with *args, **kw if the widget state
548 return callback(*args, **kw)
570 def __init__(self, master=None, **kw):
582 Widget.__init__(self, master, "ttk::button", kw)
593 def __init__(self, master=None, **kw):
605 Widget.__init__(self, master, "ttk::checkbutton", kw)
623 def __init__(self, master=None, widget=None, **kw):
639 Widget.__init__(self, master, widget or "ttk::entry", kw)
665 def __init__(self, master=None, **kw):
677 Entry.__init__(self, master, "ttk::combobox", **kw)
699 def __init__(self, master=None, **kw):
710 Widget.__init__(self, master, "ttk::frame", kw)
716 def __init__(self, master=None, **kw):
729 Widget.__init__(self, master, "ttk::label", kw)
737 def __init__(self, master=None, **kw):
748 Widget.__init__(self, master, "ttk::labelframe", kw)
757 def __init__(self, master=None, **kw):
769 Widget.__init__(self, master, "ttk::menubutton", kw)
777 def __init__(self, master=None, **kw):
806 Widget.__init__(self, master, "ttk::notebook", kw)
809 def add(self, child, **kw):
814 self.tk.call(self._w, "add", child, *(_format_optdict(kw)))
844 def insert(self, pos, child, **kw):
850 self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
863 def tab(self, tab_id, option=None, **kw):
866 If kw is not given, returns a dict of the tab option values. If option
870 kw[option] = None
871 return _val_or_dict(self.tk, kw, self._w, "tab", tab_id)
909 def __init__(self, master=None, **kw):
924 Widget.__init__(self, master, "ttk::panedwindow", kw)
930 def insert(self, pos, child, **kw):
936 self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
939 def pane(self, pane, option=None, **kw):
943 If kw is not given, returns a dict of the pane option values. If
947 kw[option] = None
948 return _val_or_dict(self.tk, kw, self._w, "pane", pane)
971 def __init__(self, master=None, **kw):
982 Widget.__init__(self, master, "ttk::progressbar", kw)
1010 def __init__(self, master=None, **kw):
1022 Widget.__init__(self, master, "ttk::radiobutton", kw)
1038 def __init__(self, master=None, **kw):
1049 Widget.__init__(self, master, "ttk::scale", kw)
1052 def configure(self, cnf=None, **kw):
1057 retval = Widget.configure(self, cnf, **kw)
1059 kw.update(cnf)
1060 if any(['from' in kw, 'from_' in kw, 'to' in kw]):
1077 def __init__(self, master=None, **kw):
1088 Widget.__init__(self, master, "ttk::scrollbar", kw)
1095 def __init__(self, master=None, **kw):
1106 Widget.__init__(self, master, "ttk::separator", kw)
1113 def __init__(self, master=None, **kw):
1120 Widget.__init__(self, master, "ttk::sizegrip", kw)
1130 def __init__(self, master=None, **kw):
1142 Entry.__init__(self, master, "ttk::spinbox", **kw)
1157 def __init__(self, master=None, **kw):
1177 Widget.__init__(self, master, "ttk::treeview", kw)
1207 def column(self, column, option=None, **kw):
1210 If kw is not given, returns a dict of the column option values. If
1214 kw[option] = None
1215 return _val_or_dict(self.tk, kw, self._w, "column", column)
1245 def heading(self, column, option=None, **kw):
1248 If kw is not given, returns a dict of the heading option values. If
1266 cmd = kw.get('command')
1269 kw['command'] = self.master.register(cmd, self._substitute)
1272 kw[option] = None
1274 return _val_or_dict(self.tk, kw, self._w, 'heading', column)
1321 def insert(self, parent, index, iid=None, **kw):
1334 opts = _format_optdict(kw)
1344 def item(self, item, option=None, **kw):
1350 values as given by kw."""
1352 kw[option] = None
1353 return _val_or_dict(self.tk, kw, self._w, "item", item)
1449 def tag_configure(self, tagname, option=None, **kw):
1452 If kw is not given, returns a dict of the option settings for tagname.
1457 kw[option] = None
1458 return _val_or_dict(self.tk, kw, self._w, "tag", "configure",
1485 def __init__(self, master=None, variable=None, from_=0, to=10, **kw):
1496 self._label_top = kw.pop('compound', 'top') == 'top'
1498 Frame.__init__(self, master, **kw)
1593 kw = {'textvariable': variable, 'style': kwargs.pop('style', None),
1595 Menubutton.__init__(self, master, **kw)