Home | History | Annotate | Download | only in lib-tk

Lines Matching refs:kw

117 def _format_elemcreate(etype, script=False, *args, **kw):
118 """Formats args and kw according to the given element factory etype."""
139 opts = _format_optdict(kw, script)
380 def configure(self, style, query_opt=None, **kw):
384 Each key in kw is an option and each value is either a string or
387 kw[query_opt] = None
388 return _val_or_dict(kw, self.tk.call, self._name, "configure", style)
391 def map(self, style, query_opt=None, **kw):
395 Each key in kw is an option and each value should be a list or a
404 self.tk.call(self._name, "map", style, *(_format_mapdict(kw))))
462 def element_create(self, elementname, etype, *args, **kw):
464 spec, opts = _format_elemcreate(etype, False, *args, **kw)
531 def __init__(self, master, widgetname, kw=None):
555 Tkinter.Widget.__init__(self, master, widgetname, kw=kw)
566 def instate(self, statespec, callback=None, *args, **kw):
571 then it will be invoked with *args, **kw if the widget state
575 return callback(*args, **kw)
597 def __init__(self, master=None, **kw):
609 Widget.__init__(self, master, "ttk::button", kw)
620 def __init__(self, master=None, **kw):
632 Widget.__init__(self, master, "ttk::checkbutton", kw)
650 def __init__(self, master=None, widget=None, **kw):
666 Widget.__init__(self, master, widget or "ttk::entry", kw)
692 def __init__(self, master=None, **kw):
704 Entry.__init__(self, master, "ttk::combobox", **kw)
724 def __init__(self, master=None, **kw):
735 Widget.__init__(self, master, "ttk::frame", kw)
741 def __init__(self, master=None, **kw):
754 Widget.__init__(self, master, "ttk::label", kw)
762 def __init__(self, master=None, **kw):
773 Widget.__init__(self, master, "ttk::labelframe", kw)
782 def __init__(self, master=None, **kw):
794 Widget.__init__(self, master, "ttk::menubutton", kw)
802 def __init__(self, master=None, **kw):
831 Widget.__init__(self, master, "ttk::notebook", kw)
834 def add(self, child, **kw):
839 self.tk.call(self._w, "add", child, *(_format_optdict(kw)))
869 def insert(self, pos, child, **kw):
875 self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
888 def tab(self, tab_id, option=None, **kw):
891 If kw is not given, returns a dict of the tab option values. If option
895 kw[option] = None
896 return _val_or_dict(kw, self.tk.call, self._w, "tab", tab_id)
934 def __init__(self, master=None, **kw):
949 Widget.__init__(self, master, "ttk::panedwindow", kw)
955 def insert(self, pos, child, **kw):
961 self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
964 def pane(self, pane, option=None, **kw):
968 If kw is not given, returns a dict of the pane option values. If
972 kw[option] = None
973 return _val_or_dict(kw, self.tk.call, self._w, "pane", pane)
996 def __init__(self, master=None, **kw):
1007 Widget.__init__(self, master, "ttk::progressbar", kw)
1035 def __init__(self, master=None, **kw):
1047 Widget.__init__(self, master, "ttk::radiobutton", kw)
1063 def __init__(self, master=None, **kw):
1074 Widget.__init__(self, master, "ttk::scale", kw)
1077 def configure(self, cnf=None, **kw):
1083 kw.update(cnf)
1084 Widget.configure(self, **kw)
1085 if any(['from' in kw, 'from_' in kw, 'to' in kw]):
1101 def __init__(self, master=None, **kw):
1112 Widget.__init__(self, master, "ttk::scrollbar", kw)
1119 def __init__(self, master=None, **kw):
1130 Widget.__init__(self, master, "ttk::separator", kw)
1137 def __init__(self, master=None, **kw):
1144 Widget.__init__(self, master, "ttk::sizegrip", kw)
1154 def __init__(self, master=None, **kw):
1174 Widget.__init__(self, master, "ttk::treeview", kw)
1203 def column(self, column, option=None, **kw):
1206 If kw is not given, returns a dict of the column option values. If
1210 kw[option] = None
1211 return _val_or_dict(kw, self.tk.call, self._w, "column", column)
1241 def heading(self, column, option=None, **kw):
1244 If kw is not given, returns a dict of the heading option values. If
1262 cmd = kw.get('command')
1265 kw['command'] = self.master.register(cmd, self._substitute)
1268 kw[option] = None
1270 return _val_or_dict(kw, self.tk.call, self._w, 'heading', column)
1317 def insert(self, parent, index, iid=None, **kw):
1330 opts = _format_optdict(kw)
1340 def item(self, item, option=None, **kw):
1346 values as given by kw."""
1348 kw[option] = None
1349 return _val_or_dict(kw, self.tk.call, self._w, "item", item)
1435 def tag_configure(self, tagname, option=None, **kw):
1438 If kw is not given, returns a dict of the option settings for tagname.
1443 kw[option] = None
1444 return _val_or_dict(kw, self.tk.call, self._w, "tag", "configure",
1466 def __init__(self, master=None, variable=None, from_=0, to=10, **kw):
1477 self._label_top = kw.pop('compound', 'top') == 'top'
1479 Frame.__init__(self, master, **kw)
1572 kw = {'textvariable': variable, 'style': kwargs.pop('style', None),
1574 Menubutton.__init__(self, master, **kw)