Home | History | Annotate | Download | only in tkinter

Lines Matching refs:cnf

103         cnf = {}
106 cnf.update(c)
110 cnf[k] = v
111 return cnf
1315 def _options(self, cnf, kw = None):
1318 cnf = _cnfmerge((cnf, kw))
1320 cnf = _cnfmerge(cnf)
1322 for k, v in cnf.items():
1456 cnf = {}
1459 cnf[x[0][1:]] = (x[0][1:],) + x[1:]
1460 return cnf
1466 def _configure(self, cmd, cnf, kw):
1469 cnf = _cnfmerge((cnf, kw))
1470 elif cnf:
1471 cnf = _cnfmerge(cnf)
1472 if cnf is None:
1474 if isinstance(cnf, str):
1475 return self._getconfigure1(_flatten((self._w, cmd, '-'+cnf)))
1476 self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
1478 def configure(self, cnf=None, **kw):
1485 return self._configure('configure', cnf, kw)
1578 def _grid_configure(self, command, index, cnf, kw):
1580 if isinstance(cnf, str) and not kw:
1581 if cnf[-1:] == '_':
1582 cnf = cnf[:-1]
1583 if cnf[:1] != '-':
1584 cnf = '-'+cnf
1585 options = (cnf,)
1587 options = self._options(cnf, kw)
1599 def grid_columnconfigure(self, index, cnf={}, **kw):
1605 return self._grid_configure('columnconfigure', index, cnf, kw)
1626 def grid_rowconfigure(self, index, cnf={}, **kw):
1632 return self._grid_configure('rowconfigure', index, cnf, kw)
2125 def pack_configure(self, cnf={}, **kw):
2143 + self._options(cnf, kw))
2164 def place_configure(self, cnf={}, **kw):
2188 + self._options(cnf, kw))
2209 def grid_configure(self, cnf={}, **kw):
2226 + self._options(cnf, kw))
2253 def _setup(self, master, cnf):
2264 if 'name' in cnf:
2265 name = cnf['name']
2266 del cnf['name']
2286 def __init__(self, master, widgetName, cnf={}, kw={}, extra=()):
2290 cnf = _cnfmerge((cnf, kw))
2292 BaseWidget._setup(self, master, cnf)
2295 classes = [(k, v) for k, v in cnf.items() if isinstance(k, type)]
2297 del cnf[k]
2299 (widgetName, self._w) + extra + self._options(cnf))
2322 def __init__(self, master=None, cnf={}, **kw):
2330 cnf = _cnfmerge((cnf, kw))
2334 if wmkey in cnf:
2335 val = cnf[wmkey]
2341 del cnf[wmkey]
2342 BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
2350 def __init__(self, master=None, cnf={}, **kw):
2369 Widget.__init__(self, master, 'button', cnf, kw)
2395 def __init__(self, master=None, cnf={}, **kw):
2405 Widget.__init__(self, master, 'canvas', cnf, kw)
2470 def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={})
2473 cnf = args[-1]
2474 if isinstance(cnf, (dict, tuple)):
2477 cnf = {}
2480 *(args + self._options(cnf, kw))))
2571 def itemconfigure(self, tagOrId, cnf=None, **kw):
2578 return self._configure(('itemconfigure', tagOrId), cnf, kw)
2592 def postscript(self, cnf={}, **kw):
2598 self._options(cnf, kw))
2636 def __init__(self, master=None, cnf={}, **kw):
2646 Widget.__init__(self, master, 'checkbutton', cnf, kw)
2665 def __init__(self, master=None, cnf={}, **kw):
2676 Widget.__init__(self, master, 'entry', cnf, kw)
2730 def __init__(self, master=None, cnf={}, **kw):
2736 cnf = _cnfmerge((cnf, kw))
2738 if 'class_' in cnf:
2739 extra = ('-class', cnf['class_'])
2740 del cnf['class_']
2741 elif 'class' in cnf:
2742 extra = ('-class', cnf['class'])
2743 del cnf['class']
2744 Widget.__init__(self, master, 'frame', cnf, {}, extra)
2748 def __init__(self, master=None, cnf={}, **kw):
2766 Widget.__init__(self, master, 'label', cnf, kw)
2770 def __init__(self, master=None, cnf={}, **kw):
2778 Widget.__init__(self, master, 'listbox', cnf, kw)
2848 def itemconfigure(self, index, cnf=None, **kw):
2856 return self._configure(('itemconfigure', index), cnf, kw)
2861 def __init__(self, master=None, cnf={}, **kw):
2868 Widget.__init__(self, master, 'menu', cnf, kw)
2875 def add(self, itemType, cnf={}, **kw):
2878 self._options(cnf, kw))
2879 def add_cascade(self, cnf={}, **kw):
2881 self.add('cascade', cnf or kw)
2882 def add_checkbutton(self, cnf={}, **kw):
2884 self.add('checkbutton', cnf or kw)
2885 def add_command(self, cnf={}, **kw):
2887 self.add('command', cnf or kw)
2888 def add_radiobutton(self, cnf={}, **kw):
2890 self.add('radiobutton', cnf or kw)
2891 def add_separator(self, cnf={}, **kw):
2893 self.add('separator', cnf or kw)
2894 def insert(self, index, itemType, cnf={}, **kw):
2897 self._options(cnf, kw))
2898 def insert_cascade(self, index, cnf={}, **kw):
2900 self.insert(index, 'cascade', cnf or kw)
2901 def insert_checkbutton(self, index, cnf={}, **kw):
2903 self.insert(index, 'checkbutton', cnf or kw)
2904 def insert_command(self, index, cnf={}, **kw):
2906 self.insert(index, 'command', cnf or kw)
2907 def insert_radiobutton(self, index, cnf={}, **kw):
2909 self.insert(index, 'radiobutton', cnf or kw)
2910 def insert_separator(self, index, cnf={}, **kw):
2912 self.insert(index, 'separator', cnf or kw)
2931 def entryconfigure(self, index, cnf=None, **kw):
2933 return self._configure(('entryconfigure', index), cnf, kw)
2964 def __init__(self, master=None, cnf={}, **kw):
2965 Widget.__init__(self, master, 'menubutton', cnf, kw)
2969 def __init__(self, master=None, cnf={}, **kw):
2970 Widget.__init__(self, master, 'message', cnf, kw)
2974 def __init__(self, master=None, cnf={}, **kw):
2984 Widget.__init__(self, master, 'radiobutton', cnf, kw)
3001 def __init__(self, master=None, cnf={}, **kw):
3010 Widget.__init__(self, master, 'scale', cnf, kw)
3034 def __init__(self, master=None, cnf={}, **kw):
3043 Widget.__init__(self, master, 'scrollbar', cnf, kw)
3078 def __init__(self, master=None, cnf={}, **kw):
3101 Widget.__init__(self, master, 'text', cnf, kw)
3255 def image_configure(self, index, cnf=None, **kw):
3257 return self._configure(('image', 'configure', index), cnf, kw)
3258 def image_create(self, index, cnf={}, **kw):
3262 *self._options(cnf, kw))
3294 def peer_create(self, newPathName, cnf={}, **kw): # new in Tk 8.5
3300 *self._options(cnf, kw))
3368 def tag_configure(self, tagName, cnf=None, **kw):
3370 return self._configure(('tag', 'configure', tagName), cnf, kw)
3415 def window_configure(self, index, cnf=None, **kw):
3417 return self._configure(('window', 'configure', index), cnf, kw)
3419 def window_create(self, index, cnf={}, **kw):
3423 + self._options(cnf, kw))
3484 def __init__(self, imgtype, name=None, cnf={}, master=None, **kw):
3494 if kw and cnf: cnf = _cnfmerge((cnf, kw))
3495 elif kw: cnf = kw
3497 for k, v in cnf
3540 def __init__(self, name=None, cnf={}, master=None, **kw):
3545 Image.__init__(self, 'photo', name, cnf, master, **kw)
3604 def __init__(self, name=None, cnf={}, master=None, **kw):
3608 Image.__init__(self, 'bitmap', name, cnf, master, **kw)
3619 def __init__(self, master=None, cnf={}, **kw):
3646 Widget.__init__(self, master, 'spinbox', cnf, kw)
3777 def __init__(self, master=None, cnf={}, **kw):
3793 Widget.__init__(self, master, 'labelframe', cnf, kw)
3799 def __init__(self, master=None, cnf={}, **kw):
3813 Widget.__init__(self, master, 'panedwindow', cnf, kw)
3904 def paneconfigure(self, tagOrId, cnf=None, **kw):
3972 if cnf is None and not kw:
3974 if isinstance(cnf, str) and not kw:
3976 self._w, 'paneconfigure', tagOrId, '-'+cnf)
3978 self._options(cnf, kw))