Lines Matching refs:cnf

116         cnf = {}
119 cnf.update(c)
123 cnf[k] = v
124 return cnf
1167 def _options(self, cnf, kw = None): argument
1170 cnf = _cnfmerge((cnf, kw))
1172 cnf = _cnfmerge(cnf)
1174 for k, v in cnf.items():
1307 cnf = {}
1310 cnf[x[0][1:]] = (x[0][1:],) + x[1:]
1311 return cnf
1317 def _configure(self, cmd, cnf, kw): argument
1320 cnf = _cnfmerge((cnf, kw))
1321 elif cnf:
1322 cnf = _cnfmerge(cnf)
1323 if cnf is None:
1325 if type(cnf) is StringType:
1326 return self._getconfigure1(_flatten((self._w, cmd, '-'+cnf)))
1327 self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
1329 def configure(self, cnf=None, **kw): argument
1336 return self._configure('configure', cnf, kw)
1420 def _grid_configure(self, command, index, cnf, kw): argument
1422 if type(cnf) is StringType and not kw:
1423 if cnf[-1:] == '_':
1424 cnf = cnf[:-1]
1425 if cnf[:1] != '-':
1426 cnf = '-'+cnf
1427 options = (cnf,)
1429 options = self._options(cnf, kw)
1441 def grid_columnconfigure(self, index, cnf={}, **kw): argument
1447 return self._grid_configure('columnconfigure', index, cnf, kw)
1468 def grid_rowconfigure(self, index, cnf={}, **kw): argument
1474 return self._grid_configure('rowconfigure', index, cnf, kw)
1933 def pack_configure(self, cnf={}, **kw): argument
1951 + self._options(cnf, kw))
1972 def place_configure(self, cnf={}, **kw): argument
1996 + self._options(cnf, kw))
2017 def grid_configure(self, cnf={}, **kw): argument
2034 + self._options(cnf, kw))
2061 def _setup(self, master, cnf): argument
2072 if 'name' in cnf:
2073 name = cnf['name']
2074 del cnf['name']
2086 def __init__(self, master, widgetName, cnf={}, kw={}, extra=()): argument
2090 cnf = _cnfmerge((cnf, kw))
2092 BaseWidget._setup(self, master, cnf)
2096 for k in cnf.keys():
2098 classes.append((k, cnf[k]))
2099 del cnf[k]
2101 (widgetName, self._w) + extra + self._options(cnf))
2124 def __init__(self, master=None, cnf={}, **kw): argument
2132 cnf = _cnfmerge((cnf, kw))
2136 if wmkey in cnf:
2137 val = cnf[wmkey]
2143 del cnf[wmkey]
2144 BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
2152 def __init__(self, master=None, cnf={}, **kw): argument
2171 Widget.__init__(self, master, 'button', cnf, kw)
2231 def __init__(self, master=None, cnf={}, **kw): argument
2241 Widget.__init__(self, master, 'canvas', cnf, kw)
2309 cnf = args[-1]
2310 if type(cnf) in (DictionaryType, TupleType):
2313 cnf = {}
2316 *(args + self._options(cnf, kw))))
2407 def itemconfigure(self, tagOrId, cnf=None, **kw): argument
2414 return self._configure(('itemconfigure', tagOrId), cnf, kw)
2428 def postscript(self, cnf={}, **kw): argument
2434 self._options(cnf, kw))
2472 def __init__(self, master=None, cnf={}, **kw): argument
2482 Widget.__init__(self, master, 'checkbutton', cnf, kw)
2501 def __init__(self, master=None, cnf={}, **kw): argument
2512 Widget.__init__(self, master, 'entry', cnf, kw)
2566 def __init__(self, master=None, cnf={}, **kw): argument
2572 cnf = _cnfmerge((cnf, kw))
2574 if 'class_' in cnf:
2575 extra = ('-class', cnf['class_'])
2576 del cnf['class_']
2577 elif 'class' in cnf:
2578 extra = ('-class', cnf['class'])
2579 del cnf['class']
2580 Widget.__init__(self, master, 'frame', cnf, {}, extra)
2584 def __init__(self, master=None, cnf={}, **kw): argument
2602 Widget.__init__(self, master, 'label', cnf, kw)
2606 def __init__(self, master=None, cnf={}, **kw): argument
2614 Widget.__init__(self, master, 'listbox', cnf, kw)
2684 def itemconfigure(self, index, cnf=None, **kw): argument
2692 return self._configure(('itemconfigure', index), cnf, kw)
2697 def __init__(self, master=None, cnf={}, **kw): argument
2704 Widget.__init__(self, master, 'menu', cnf, kw)
2737 def add(self, itemType, cnf={}, **kw): argument
2740 self._options(cnf, kw))
2741 def add_cascade(self, cnf={}, **kw): argument
2743 self.add('cascade', cnf or kw)
2744 def add_checkbutton(self, cnf={}, **kw): argument
2746 self.add('checkbutton', cnf or kw)
2747 def add_command(self, cnf={}, **kw): argument
2749 self.add('command', cnf or kw)
2750 def add_radiobutton(self, cnf={}, **kw): argument
2752 self.add('radiobutton', cnf or kw)
2753 def add_separator(self, cnf={}, **kw): argument
2755 self.add('separator', cnf or kw)
2756 def insert(self, index, itemType, cnf={}, **kw): argument
2759 self._options(cnf, kw))
2760 def insert_cascade(self, index, cnf={}, **kw): argument
2762 self.insert(index, 'cascade', cnf or kw)
2763 def insert_checkbutton(self, index, cnf={}, **kw): argument
2765 self.insert(index, 'checkbutton', cnf or kw)
2766 def insert_command(self, index, cnf={}, **kw): argument
2768 self.insert(index, 'command', cnf or kw)
2769 def insert_radiobutton(self, index, cnf={}, **kw): argument
2771 self.insert(index, 'radiobutton', cnf or kw)
2772 def insert_separator(self, index, cnf={}, **kw): argument
2774 self.insert(index, 'separator', cnf or kw)
2793 def entryconfigure(self, index, cnf=None, **kw): argument
2795 return self._configure(('entryconfigure', index), cnf, kw)
2822 def __init__(self, master=None, cnf={}, **kw): argument
2823 Widget.__init__(self, master, 'menubutton', cnf, kw)
2827 def __init__(self, master=None, cnf={}, **kw): argument
2828 Widget.__init__(self, master, 'message', cnf, kw)
2832 def __init__(self, master=None, cnf={}, **kw): argument
2842 Widget.__init__(self, master, 'radiobutton', cnf, kw)
2859 def __init__(self, master=None, cnf={}, **kw): argument
2868 Widget.__init__(self, master, 'scale', cnf, kw)
2892 def __init__(self, master=None, cnf={}, **kw): argument
2901 Widget.__init__(self, master, 'scrollbar', cnf, kw)
2932 def __init__(self, master=None, cnf={}, **kw): argument
2955 Widget.__init__(self, master, 'text', cnf, kw)
3098 def image_configure(self, index, cnf=None, **kw): argument
3100 return self._configure(('image', 'configure', index), cnf, kw)
3101 def image_create(self, index, cnf={}, **kw): argument
3105 *self._options(cnf, kw))
3193 def tag_configure(self, tagName, cnf=None, **kw): argument
3195 return self._configure(('tag', 'configure', tagName), cnf, kw)
3240 def window_configure(self, index, cnf=None, **kw): argument
3242 return self._configure(('window', 'configure', index), cnf, kw)
3244 def window_create(self, index, cnf={}, **kw): argument
3248 + self._options(cnf, kw))
3309 def __init__(self, imgtype, name=None, cnf={}, master=None, **kw): argument
3322 if kw and cnf: cnf = _cnfmerge((cnf, kw))
3323 elif kw: cnf = kw
3325 for k, v in cnf.items():
3372 def __init__(self, name=None, cnf={}, master=None, **kw): argument
3377 Image.__init__(self, 'photo', name, cnf, master, **kw)
3436 def __init__(self, name=None, cnf={}, master=None, **kw): argument
3440 Image.__init__(self, 'bitmap', name, cnf, master, **kw)
3451 def __init__(self, master=None, cnf={}, **kw): argument
3478 Widget.__init__(self, master, 'spinbox', cnf, kw)
3609 def __init__(self, master=None, cnf={}, **kw): argument
3625 Widget.__init__(self, master, 'labelframe', cnf, kw)
3631 def __init__(self, master=None, cnf={}, **kw): argument
3645 Widget.__init__(self, master, 'panedwindow', cnf, kw)
3736 def paneconfigure(self, tagOrId, cnf=None, **kw): argument
3804 if cnf is None and not kw:
3806 if type(cnf) == StringType and not kw:
3808 self._w, 'paneconfigure', tagOrId, '-'+cnf)
3810 self._options(cnf, kw))
3821 def __init__(self, master=None, cnf={}, **kw): argument
3822 Widget.__init__(self, master, 'studbutton', cnf, kw)
3829 def __init__(self, master=None, cnf={}, **kw): argument
3830 Widget.__init__(self, master, 'tributton', cnf, kw)