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

Lines Matching refs:kw

411     def tk_setPalette(self, *args, **kw):
423 + _flatten(args) + _flatten(kw.items()))
565 def clipboard_get(self, **kw):
580 if 'type' not in kw and self._windowingsystem == 'x11':
582 kw['type'] = 'UTF8_STRING'
583 return self.tk.call(('clipboard', 'get') + self._options(kw))
585 del kw['type']
586 return self.tk.call(('clipboard', 'get') + self._options(kw))
588 def clipboard_clear(self, **kw):
593 if 'displayof' not in kw: kw['displayof'] = self._w
594 self.tk.call(('clipboard', 'clear') + self._options(kw))
595 def clipboard_append(self, string, **kw):
601 if 'displayof' not in kw: kw['displayof'] = self._w
602 self.tk.call(('clipboard', 'append') + self._options(kw)
657 def selection_clear(self, **kw):
659 if 'displayof' not in kw: kw['displayof'] = self._w
660 self.tk.call(('selection', 'clear') + self._options(kw))
661 def selection_get(self, **kw):
670 if 'displayof' not in kw: kw['displayof'] = self._w
671 if 'type' not in kw and self._windowingsystem == 'x11':
673 kw['type'] = 'UTF8_STRING'
674 return self.tk.call(('selection', 'get') + self._options(kw))
676 del kw['type']
677 return self.tk.call(('selection', 'get') + self._options(kw))
678 def selection_handle(self, command, **kw):
691 self.tk.call(('selection', 'handle') + self._options(kw)
693 def selection_own(self, **kw):
699 self._options(kw) + (self._w,))
700 def selection_own_get(self, **kw):
707 if 'displayof' not in kw: kw['displayof'] = self._w
708 name = self.tk.call(('selection', 'own') + self._options(kw))
1100 def _options(self, cnf, kw = None):
1102 if kw:
1103 cnf = _cnfmerge((cnf, kw))
1237 def _configure(self, cmd, cnf, kw):
1239 if kw:
1240 cnf = _cnfmerge((cnf, kw))
1255 def configure(self, cnf=None, **kw):
1262 return self._configure('configure', cnf, kw)
1330 def _grid_configure(self, command, index, cnf, kw):
1332 if type(cnf) is StringType and not kw:
1339 options = self._options(cnf, kw)
1364 def grid_columnconfigure(self, index, cnf={}, **kw):
1370 return self._grid_configure('columnconfigure', index, cnf, kw)
1391 def grid_rowconfigure(self, index, cnf={}, **kw):
1397 return self._grid_configure('rowconfigure', index, cnf, kw)
1431 def event_generate(self, sequence, **kw):
1436 for k, v in kw.items():
1850 def pack_configure(self, cnf={}, **kw):
1868 + self._options(cnf, kw))
1895 def place_configure(self, cnf={}, **kw):
1919 + self._options(cnf, kw))
1946 def grid_configure(self, cnf={}, **kw):
1963 + self._options(cnf, kw))
2021 def __init__(self, master, widgetName, cnf={}, kw={}, extra=()):
2024 if kw:
2025 cnf = _cnfmerge((cnf, kw))
2059 def __init__(self, master=None, cnf={}, **kw):
2066 if kw:
2067 cnf = _cnfmerge((cnf, kw))
2087 def __init__(self, master=None, cnf={}, **kw):
2106 Widget.__init__(self, master, 'button', cnf, kw)
2166 def __init__(self, master=None, cnf={}, **kw):
2176 Widget.__init__(self, master, 'canvas', cnf, kw)
2241 def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={})
2251 *(args + self._options(cnf, kw))))
2252 def create_arc(self, *args, **kw):
2254 return self._create('arc', args, kw)
2255 def create_bitmap(self, *args, **kw):
2257 return self._create('bitmap', args, kw)
2258 def create_image(self, *args, **kw):
2260 return self._create('image', args, kw)
2261 def create_line(self, *args, **kw):
2263 return self._create('line', args, kw)
2264 def create_oval(self, *args, **kw):
2266 return self._create('oval', args, kw)
2267 def create_polygon(self, *args, **kw):
2269 return self._create('polygon', args, kw)
2270 def create_rectangle(self, *args, **kw):
2272 return self._create('rectangle', args, kw)
2273 def create_text(self, *args, **kw):
2275 return self._create('text', args, kw)
2276 def create_window(self, *args, **kw):
2278 return self._create('window', args, kw)
2342 def itemconfigure(self, tagOrId, cnf=None, **kw):
2349 return self._configure(('itemconfigure', tagOrId), cnf, kw)
2363 def postscript(self, cnf={}, **kw):
2369 self._options(cnf, kw))
2407 def __init__(self, master=None, cnf={}, **kw):
2417 Widget.__init__(self, master, 'checkbutton', cnf, kw)
2436 def __init__(self, master=None, cnf={}, **kw):
2447 Widget.__init__(self, master, 'entry', cnf, kw)
2501 def __init__(self, master=None, cnf={}, **kw):
2507 cnf = _cnfmerge((cnf, kw))
2519 def __init__(self, master=None, cnf={}, **kw):
2537 Widget.__init__(self, master, 'label', cnf, kw)
2541 def __init__(self, master=None, cnf={}, **kw):
2549 Widget.__init__(self, master, 'listbox', cnf, kw)
2622 def itemconfigure(self, index, cnf=None, **kw):
2630 return self._configure(('itemconfigure', index), cnf, kw)
2635 def __init__(self, master=None, cnf={}, **kw):
2642 Widget.__init__(self, master, 'menu', cnf, kw)
2671 def add(self, itemType, cnf={}, **kw):
2674 self._options(cnf, kw))
2675 def add_cascade(self, cnf={}, **kw):
2677 self.add('cascade', cnf or kw)
2678 def add_checkbutton(self, cnf={}, **kw):
2680 self.add('checkbutton', cnf or kw)
2681 def add_command(self, cnf={}, **kw):
2683 self.add('command', cnf or kw)
2684 def add_radiobutton(self, cnf={}, **kw):
2686 self.add('radiobutton', cnf or kw)
2687 def add_separator(self, cnf={}, **kw):
2689 self.add('separator', cnf or kw)
2690 def insert(self, index, itemType, cnf={}, **kw):
2693 self._options(cnf, kw))
2694 def insert_cascade(self, index, cnf={}, **kw):
2696 self.insert(index, 'cascade', cnf or kw)
2697 def insert_checkbutton(self, index, cnf={}, **kw):
2699 self.insert(index, 'checkbutton', cnf or kw)
2700 def insert_command(self, index, cnf={}, **kw):
2702 self.insert(index, 'command', cnf or kw)
2703 def insert_radiobutton(self, index, cnf={}, **kw):
2705 self.insert(index, 'radiobutton', cnf or kw)
2706 def insert_separator(self, index, cnf={}, **kw):
2708 self.insert(index, 'separator', cnf or kw)
2727 def entryconfigure(self, index, cnf=None, **kw):
2729 return self._configure(('entryconfigure', index), cnf, kw)
2756 def __init__(self, master=None, cnf={}, **kw):
2757 Widget.__init__(self, master, 'menubutton', cnf, kw)
2761 def __init__(self, master=None, cnf={}, **kw):
2762 Widget.__init__(self, master, 'message', cnf, kw)
2766 def __init__(self, master=None, cnf={}, **kw):
2776 Widget.__init__(self, master, 'radiobutton', cnf, kw)
2793 def __init__(self, master=None, cnf={}, **kw):
2802 Widget.__init__(self, master, 'scale', cnf, kw)
2826 def __init__(self, master=None, cnf={}, **kw):
2835 Widget.__init__(self, master, 'scrollbar', cnf, kw)
2866 def __init__(self, master=None, cnf={}, **kw):
2889 Widget.__init__(self, master, 'text', cnf, kw)
2921 def dump(self, index1, index2=None, command=None, **kw):
2949 for key in kw:
2950 if kw[key]: args.append("-" + key)
3031 def image_configure(self, index, cnf=None, **kw):
3033 return self._configure(('image', 'configure', index), cnf, kw)
3034 def image_create(self, index, cnf={}, **kw):
3038 *self._options(cnf, kw))
3126 def tag_configure(self, tagName, cnf=None, **kw):
3128 return self._configure(('tag', 'configure', tagName), cnf, kw)
3173 def window_configure(self, index, cnf=None, **kw):
3175 return self._configure(('window', 'configure', index), cnf, kw)
3177 def window_create(self, index, cnf={}, **kw):
3181 + self._options(cnf, kw))
3209 kw = {"borderwidth": 2, "textvariable": variable,
3212 Widget.__init__(self, master, "menubutton", kw)
3242 def __init__(self, imgtype, name=None, cnf={}, master=None, **kw):
3255 if kw and cnf: cnf = _cnfmerge((cnf, kw))
3256 elif kw: cnf = kw
3276 def configure(self, **kw):
3279 for k, v in _cnfmerge(kw).items():
3301 def __init__(self, name=None, cnf={}, master=None, **kw):
3306 Image.__init__(self, 'photo', name, cnf, master, **kw)
3361 def __init__(self, name=None, cnf={}, master=None, **kw):
3365 Image.__init__(self, 'bitmap', name, cnf, master, **kw)
3373 def __init__(self, master=None, cnf={}, **kw):
3400 Widget.__init__(self, master, 'spinbox', cnf, kw)
3531 kw):
3547 Widget.__init__(self, master, 'labelframe', cnf, kw)
3553 def __init__(self, master=None, cnf={}, **kw):
3567 Widget.__init__(self, master, 'panedwindow', cnf, kw)
3569 def add(self, child, **kw):
3577 self.tk.call((self._w, 'add', child) + self._options(kw))
3658 def paneconfigure(self, tagOrId, cnf=None, **kw):
3726 if cnf is None and not kw:
3733 if type(cnf) == StringType and not kw:
3738 self._options(cnf, kw))
3749 def __init__(self, master=None, cnf={}, **kw):
3750 Widget.__init__(self, master, 'studbutton', cnf, kw)
3757 def __init__(self, master=None, cnf={}, **kw):
3758 Widget.__init__(self, master, 'tributton', cnf, kw)