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

Lines Matching refs:cnf

113         cnf = {}
116 cnf.update(c)
120 cnf[k] = v
121 return cnf
1162 def _options(self, cnf, kw = None):
1165 cnf = _cnfmerge((cnf, kw))
1167 cnf = _cnfmerge(cnf)
1169 for k, v in cnf.items():
1302 cnf = {}
1305 cnf[x[0][1:]] = (x[0][1:],) + x[1:]
1306 return cnf
1312 def _configure(self, cmd, cnf, kw):
1315 cnf = _cnfmerge((cnf, kw))
1316 elif cnf:
1317 cnf = _cnfmerge(cnf)
1318 if cnf is None:
1320 if type(cnf) is StringType:
1321 return self._getconfigure1(_flatten((self._w, cmd, '-'+cnf)))
1322 self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
1324 def configure(self, cnf=None, **kw):
1331 return self._configure('configure', cnf, kw)
1415 def _grid_configure(self, command, index, cnf, kw):
1417 if type(cnf) is StringType and not kw:
1418 if cnf[-1:] == '_':
1419 cnf = cnf[:-1]
1420 if cnf[:1] != '-':
1421 cnf = '-'+cnf
1422 options = (cnf,)
1424 options = self._options(cnf, kw)
1436 def grid_columnconfigure(self, index, cnf={}, **kw):
1442 return self._grid_configure('columnconfigure', index, cnf, kw)
1463 def grid_rowconfigure(self, index, cnf={}, **kw):
1469 return self._grid_configure('rowconfigure', index, cnf, kw)
1928 def pack_configure(self, cnf={}, **kw):
1946 + self._options(cnf, kw))
1967 def place_configure(self, cnf={}, **kw):
1991 + self._options(cnf, kw))
2012 def grid_configure(self, cnf={}, **kw):
2029 + self._options(cnf, kw))
2056 def _setup(self, master, cnf):
2067 if 'name' in cnf:
2068 name = cnf['name']
2069 del cnf['name']
2081 def __init__(self, master, widgetName, cnf={}, kw={}, extra=()):
2085 cnf = _cnfmerge((cnf, kw))
2087 BaseWidget._setup(self, master, cnf)
2091 for k in cnf.keys():
2093 classes.append((k, cnf[k]))
2094 del cnf[k]
2096 (widgetName, self._w) + extra + self._options(cnf))
2119 def __init__(self, master=None, cnf={}, **kw):
2127 cnf = _cnfmerge((cnf, kw))
2131 if wmkey in cnf:
2132 val = cnf[wmkey]
2138 del cnf[wmkey]
2139 BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
2147 def __init__(self, master=None, cnf={}, **kw):
2166 Widget.__init__(self, master, 'button', cnf, kw)
2226 def __init__(self, master=None, cnf={}, **kw):
2236 Widget.__init__(self, master, 'canvas', cnf, kw)
2301 def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={})
2304 cnf = args[-1]
2305 if type(cnf) in (DictionaryType, TupleType):
2308 cnf = {}
2311 *(args + self._options(cnf, kw))))
2402 def itemconfigure(self, tagOrId, cnf=None, **kw):
2409 return self._configure(('itemconfigure', tagOrId), cnf, kw)
2423 def postscript(self, cnf={}, **kw):
2429 self._options(cnf, kw))
2467 def __init__(self, master=None, cnf={}, **kw):
2477 Widget.__init__(self, master, 'checkbutton', cnf, kw)
2496 def __init__(self, master=None, cnf={}, **kw):
2507 Widget.__init__(self, master, 'entry', cnf, kw)
2561 def __init__(self, master=None, cnf={}, **kw):
2567 cnf = _cnfmerge((cnf, kw))
2569 if 'class_' in cnf:
2570 extra = ('-class', cnf['class_'])
2571 del cnf['class_']
2572 elif 'class' in cnf:
2573 extra = ('-class', cnf['class'])
2574 del cnf['class']
2575 Widget.__init__(self, master, 'frame', cnf, {}, extra)
2579 def __init__(self, master=None, cnf={}, **kw):
2597 Widget.__init__(self, master, 'label', cnf, kw)
2601 def __init__(self, master=None, cnf={}, **kw):
2609 Widget.__init__(self, master, 'listbox', cnf, kw)
2679 def itemconfigure(self, index, cnf=None, **kw):
2687 return self._configure(('itemconfigure', index), cnf, kw)
2692 def __init__(self, master=None, cnf={}, **kw):
2699 Widget.__init__(self, master, 'menu', cnf, kw)
2732 def add(self, itemType, cnf={}, **kw):
2735 self._options(cnf, kw))
2736 def add_cascade(self, cnf={}, **kw):
2738 self.add('cascade', cnf or kw)
2739 def add_checkbutton(self, cnf={}, **kw):
2741 self.add('checkbutton', cnf or kw)
2742 def add_command(self, cnf={}, **kw):
2744 self.add('command', cnf or kw)
2745 def add_radiobutton(self, cnf={}, **kw):
2747 self.add('radiobutton', cnf or kw)
2748 def add_separator(self, cnf={}, **kw):
2750 self.add('separator', cnf or kw)
2751 def insert(self, index, itemType, cnf={}, **kw):
2754 self._options(cnf, kw))
2755 def insert_cascade(self, index, cnf={}, **kw):
2757 self.insert(index, 'cascade', cnf or kw)
2758 def insert_checkbutton(self, index, cnf={}, **kw):
2760 self.insert(index, 'checkbutton', cnf or kw)
2761 def insert_command(self, index, cnf={}, **kw):
2763 self.insert(index, 'command', cnf or kw)
2764 def insert_radiobutton(self, index, cnf={}, **kw):
2766 self.insert(index, 'radiobutton', cnf or kw)
2767 def insert_separator(self, index, cnf={}, **kw):
2769 self.insert(index, 'separator', cnf or kw)
2788 def entryconfigure(self, index, cnf=None, **kw):
2790 return self._configure(('entryconfigure', index), cnf, kw)
2817 def __init__(self, master=None, cnf={}, **kw):
2818 Widget.__init__(self, master, 'menubutton', cnf, kw)
2822 def __init__(self, master=None, cnf={}, **kw):
2823 Widget.__init__(self, master, 'message', cnf, kw)
2827 def __init__(self, master=None, cnf={}, **kw):
2837 Widget.__init__(self, master, 'radiobutton', cnf, kw)
2854 def __init__(self, master=None, cnf={}, **kw):
2863 Widget.__init__(self, master, 'scale', cnf, kw)
2887 def __init__(self, master=None, cnf={}, **kw):
2896 Widget.__init__(self, master, 'scrollbar', cnf, kw)
2927 def __init__(self, master=None, cnf={}, **kw):
2950 Widget.__init__(self, master, 'text', cnf, kw)
3093 def image_configure(self, index, cnf=None, **kw):
3095 return self._configure(('image', 'configure', index), cnf, kw)
3096 def image_create(self, index, cnf={}, **kw):
3100 *self._options(cnf, kw))
3188 def tag_configure(self, tagName, cnf=None, **kw):
3190 return self._configure(('tag', 'configure', tagName), cnf, kw)
3235 def window_configure(self, index, cnf=None, **kw):
3237 return self._configure(('window', 'configure', index), cnf, kw)
3239 def window_create(self, index, cnf={}, **kw):
3243 + self._options(cnf, kw))
3304 def __init__(self, imgtype, name=None, cnf={}, master=None, **kw):
3317 if kw and cnf: cnf = _cnfmerge((cnf, kw))
3318 elif kw: cnf = kw
3320 for k, v in cnf.items():
3367 def __init__(self, name=None, cnf={}, master=None, **kw):
3372 Image.__init__(self, 'photo', name, cnf, master, **kw)
3431 def __init__(self, name=None, cnf={}, master=None, **kw):
3435 Image.__init__(self, 'bitmap', name, cnf, master, **kw)
3446 def __init__(self, master=None, cnf={}, **kw):
3473 Widget.__init__(self, master, 'spinbox', cnf, kw)
3604 def __init__(self, master=None, cnf={}, **kw):
3620 Widget.__init__(self, master, 'labelframe', cnf, kw)
3626 def __init__(self, master=None, cnf={}, **kw):
3640 Widget.__init__(self, master, 'panedwindow', cnf, kw)
3731 def paneconfigure(self, tagOrId, cnf=None, **kw):
3799 if cnf is None and not kw:
3801 if type(cnf) == StringType and not kw:
3803 self._w, 'paneconfigure', tagOrId, '-'+cnf)
3805 self._options(cnf, kw))
3816 def __init__(self, master=None, cnf={}, **kw):
3817 Widget.__init__(self, master, 'studbutton', cnf, kw)
3824 def __init__(self, master=None, cnf={}, **kw):
3825 Widget.__init__(self, master, 'tributton', cnf, kw)