Lines Matching refs:kw

715     def tk_setPalette(self, *args, **kw):
727 + _flatten(args) + _flatten(list(kw.items())))
905 def clipboard_get(self, **kw):
920 if 'type' not in kw and self._windowingsystem == 'x11':
922 kw['type'] = 'UTF8_STRING'
923 return self.tk.call(('clipboard', 'get') + self._options(kw))
925 del kw['type']
926 return self.tk.call(('clipboard', 'get') + self._options(kw))
928 def clipboard_clear(self, **kw):
933 if 'displayof' not in kw: kw['displayof'] = self._w
934 self.tk.call(('clipboard', 'clear') + self._options(kw))
936 def clipboard_append(self, string, **kw):
942 if 'displayof' not in kw: kw['displayof'] = self._w
943 self.tk.call(('clipboard', 'append') + self._options(kw)
1008 def selection_clear(self, **kw):
1010 if 'displayof' not in kw: kw['displayof'] = self._w
1011 self.tk.call(('selection', 'clear') + self._options(kw))
1013 def selection_get(self, **kw):
1022 if 'displayof' not in kw: kw['displayof'] = self._w
1023 if 'type' not in kw and self._windowingsystem == 'x11':
1025 kw['type'] = 'UTF8_STRING'
1026 return self.tk.call(('selection', 'get') + self._options(kw))
1028 del kw['type']
1029 return self.tk.call(('selection', 'get') + self._options(kw))
1031 def selection_handle(self, command, **kw):
1044 self.tk.call(('selection', 'handle') + self._options(kw)
1047 def selection_own(self, **kw):
1053 self._options(kw) + (self._w,))
1055 def selection_own_get(self, **kw):
1062 if 'displayof' not in kw: kw['displayof'] = self._w
1063 name = self.tk.call(('selection', 'own') + self._options(kw))
1524 def _options(self, cnf, kw = None):
1526 if kw:
1527 cnf = _cnfmerge((cnf, kw))
1682 def _configure(self, cmd, cnf, kw):
1684 if kw:
1685 cnf = _cnfmerge((cnf, kw))
1695 def configure(self, cnf=None, **kw):
1702 return self._configure('configure', cnf, kw)
1811 def _grid_configure(self, command, index, cnf, kw):
1813 if isinstance(cnf, str) and not kw:
1820 options = self._options(cnf, kw)
1832 def grid_columnconfigure(self, index, cnf={}, **kw):
1838 return self._grid_configure('columnconfigure', index, cnf, kw)
1863 def grid_rowconfigure(self, index, cnf={}, **kw):
1869 return self._grid_configure('rowconfigure', index, cnf, kw)
1907 def event_generate(self, sequence, **kw):
1912 for k, v in kw.items():
2436 def pack_configure(self, cnf={}, **kw):
2454 + self._options(cnf, kw))
2482 def place_configure(self, cnf={}, **kw):
2506 + self._options(cnf, kw))
2534 def grid_configure(self, cnf={}, **kw):
2551 + self._options(cnf, kw))
2616 def __init__(self, master, widgetName, cnf={}, kw={}, extra=()):
2619 if kw:
2620 cnf = _cnfmerge((cnf, kw))
2657 def __init__(self, master=None, cnf={}, **kw):
2664 if kw:
2665 cnf = _cnfmerge((cnf, kw))
2687 def __init__(self, master=None, cnf={}, **kw):
2706 Widget.__init__(self, master, 'button', cnf, kw)
2734 def __init__(self, master=None, cnf={}, **kw):
2744 Widget.__init__(self, master, 'canvas', cnf, kw)
2824 def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={})
2834 *(args + self._options(cnf, kw))))
2836 def create_arc(self, *args, **kw):
2838 return self._create('arc', args, kw)
2840 def create_bitmap(self, *args, **kw):
2842 return self._create('bitmap', args, kw)
2844 def create_image(self, *args, **kw):
2846 return self._create('image', args, kw)
2848 def create_line(self, *args, **kw):
2850 return self._create('line', args, kw)
2852 def create_oval(self, *args, **kw):
2854 return self._create('oval', args, kw)
2856 def create_polygon(self, *args, **kw):
2858 return self._create('polygon', args, kw)
2860 def create_rectangle(self, *args, **kw):
2862 return self._create('rectangle', args, kw)
2864 def create_text(self, *args, **kw):
2866 return self._create('text', args, kw)
2868 def create_window(self, *args, **kw):
2870 return self._create('window', args, kw)
2952 def itemconfigure(self, tagOrId, cnf=None, **kw):
2959 return self._configure(('itemconfigure', tagOrId), cnf, kw)
2987 def postscript(self, cnf={}, **kw):
2993 self._options(cnf, kw))
3046 def __init__(self, master=None, cnf={}, **kw):
3056 Widget.__init__(self, master, 'checkbutton', cnf, kw)
3090 def __init__(self, master=None, cnf={}, **kw):
3101 Widget.__init__(self, master, 'entry', cnf, kw)
3176 def __init__(self, master=None, cnf={}, **kw):
3182 cnf = _cnfmerge((cnf, kw))
3196 def __init__(self, master=None, cnf={}, **kw):
3214 Widget.__init__(self, master, 'label', cnf, kw)
3220 def __init__(self, master=None, cnf={}, **kw):
3228 Widget.__init__(self, master, 'listbox', cnf, kw)
3320 def itemconfigure(self, index, cnf=None, **kw):
3328 return self._configure(('itemconfigure', index), cnf, kw)
3336 def __init__(self, master=None, cnf={}, **kw):
3343 Widget.__init__(self, master, 'menu', cnf, kw)
3353 def add(self, itemType, cnf={}, **kw):
3356 self._options(cnf, kw))
3358 def add_cascade(self, cnf={}, **kw):
3360 self.add('cascade', cnf or kw)
3362 def add_checkbutton(self, cnf={}, **kw):
3364 self.add('checkbutton', cnf or kw)
3366 def add_command(self, cnf={}, **kw):
3368 self.add('command', cnf or kw)
3370 def add_radiobutton(self, cnf={}, **kw):
3372 self.add('radiobutton', cnf or kw)
3374 def add_separator(self, cnf={}, **kw):
3376 self.add('separator', cnf or kw)
3378 def insert(self, index, itemType, cnf={}, **kw):
3381 self._options(cnf, kw))
3383 def insert_cascade(self, index, cnf={}, **kw):
3385 self.insert(index, 'cascade', cnf or kw)
3387 def insert_checkbutton(self, index, cnf={}, **kw):
3389 self.insert(index, 'checkbutton', cnf or kw)
3391 def insert_command(self, index, cnf={}, **kw):
3393 self.insert(index, 'command', cnf or kw)
3395 def insert_radiobutton(self, index, cnf={}, **kw):
3397 self.insert(index, 'radiobutton', cnf or kw)
3399 def insert_separator(self, index, cnf={}, **kw):
3401 self.insert(index, 'separator', cnf or kw)
3423 def entryconfigure(self, index, cnf=None, **kw):
3425 return self._configure(('entryconfigure', index), cnf, kw)
3465 def __init__(self, master=None, cnf={}, **kw):
3466 Widget.__init__(self, master, 'menubutton', cnf, kw)
3472 def __init__(self, master=None, cnf={}, **kw):
3473 Widget.__init__(self, master, 'message', cnf, kw)
3479 def __init__(self, master=None, cnf={}, **kw):
3489 Widget.__init__(self, master, 'radiobutton', cnf, kw)
3512 def __init__(self, master=None, cnf={}, **kw):
3521 Widget.__init__(self, master, 'scale', cnf, kw)
3551 def __init__(self, master=None, cnf={}, **kw):
3560 Widget.__init__(self, master, 'scrollbar', cnf, kw)
3601 def __init__(self, master=None, cnf={}, **kw):
3624 Widget.__init__(self, master, 'text', cnf, kw)
3675 def dump(self, index1, index2=None, command=None, **kw):
3703 for key in kw:
3704 if kw[key]: args.append("-" + key)
3787 def image_configure(self, index, cnf=None, **kw):
3789 return self._configure(('image', 'configure', index), cnf, kw)
3791 def image_create(self, index, cnf={}, **kw):
3795 *self._options(cnf, kw))
3837 def peer_create(self, newPathName, cnf={}, **kw): # new in Tk 8.5
3843 *self._options(cnf, kw))
3922 def tag_configure(self, tagName, cnf=None, **kw):
3924 return self._configure(('tag', 'configure', tagName), cnf, kw)
3980 def window_configure(self, index, cnf=None, **kw):
3982 return self._configure(('window', 'configure', index), cnf, kw)
3986 def window_create(self, index, cnf={}, **kw):
3990 + self._options(cnf, kw))
4024 kw = {"borderwidth": 2, "textvariable": variable,
4027 Widget.__init__(self, master, "menubutton", kw)
4059 def __init__(self, imgtype, name=None, cnf={}, master=None, **kw):
4067 if kw and cnf: cnf = _cnfmerge((cnf, kw))
4068 elif kw: cnf = kw
4093 def configure(self, **kw):
4096 for k, v in _cnfmerge(kw).items():
4124 def __init__(self, name=None, cnf={}, master=None, **kw):
4129 Image.__init__(self, 'photo', name, cnf, master, **kw)
4208 def __init__(self, name=None, cnf={}, master=None, **kw):
4212 Image.__init__(self, 'bitmap', name, cnf, master, **kw)
4228 def __init__(self, master=None, cnf={}, **kw):
4255 Widget.__init__(self, master, 'spinbox', cnf, kw)
4406 def __init__(self, master=None, cnf={}, **kw):
4422 Widget.__init__(self, master, 'labelframe', cnf, kw)
4430 def __init__(self, master=None, cnf={}, **kw):
4444 Widget.__init__(self, master, 'panedwindow', cnf, kw)
4446 def add(self, child, **kw):
4454 self.tk.call((self._w, 'add', child) + self._options(kw))
4536 def paneconfigure(self, tagOrId, cnf=None, **kw):
4604 if cnf is None and not kw:
4606 if isinstance(cnf, str) and not kw:
4610 self._options(cnf, kw))