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
1100 def _options(self, cnf, kw = None):
1103 cnf = _cnfmerge((cnf, kw))
1105 cnf = _cnfmerge(cnf)
1107 for k, v in cnf.items():
1237 def _configure(self, cmd, cnf, kw):
1240 cnf = _cnfmerge((cnf, kw))
1241 elif cnf:
1242 cnfcnf)
1243 if cnf is None:
1244 cnf = {}
1247 cnf[x[0][1:]] = (x[0][1:],) + x[1:]
1248 return cnf
1249 if type(cnf) is StringType:
1251 self.tk.call(_flatten((self._w, cmd, '-'+cnf))))
1253 self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
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:
1333 if cnf[-1:] == '_':
1334 cnf = cnf[:-1]
1335 if cnf[:1] != '-':
1336 cnf = '-'+cnf
1337 options = (cnf,)
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)
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))
1996 def _setup(self, master, cnf):
2007 if 'name' in cnf:
2008 name = cnf['name']
2009 del cnf['name']
2021 def __init__(self, master, widgetName, cnf={}, kw={}, extra=()):
2025 cnf = _cnfmerge((cnf, kw))
2027 BaseWidget._setup(self, master, cnf)
2031 for k in cnf.keys():
2033 classes.append((k, cnf[k]))
2034 del cnf[k]
2036 (widgetName, self._w) + extra + self._options(cnf))
2059 def __init__(self, master=None, cnf={}, **kw):
2067 cnf = _cnfmerge((cnf, kw))
2071 if wmkey in cnf:
2072 val = cnf[wmkey]
2078 del cnf[wmkey]
2079 BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
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={})
2244 cnf = args[-1]
2245 if type(cnf) in (DictionaryType, TupleType):
2248 cnf = {}
2251 *(args + self._options(cnf, 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))
2509 if 'class_' in cnf:
2510 extra = ('-class', cnf['class_'])
2511 del cnf['class_']
2512 elif 'class' in cnf:
2513 extra = ('-class', cnf['class'])
2514 del cnf['class']
2515 Widget.__init__(self, master, 'frame', cnf, {}, extra)
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)
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))
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
3258 for k, v in cnf.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 cnf={}, **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)
3658 def paneconfigure(self, tagOrId, cnf=None, **kw):
3726 if cnf is None and not kw:
3727 cnf = {}
3731 cnf[x[0][1:]] = (x[0][1:],) + x[1:]
3732 return cnf
3733 if type(cnf) == StringType and not kw:
3735 self._w, 'paneconfigure', tagOrId, '-'+cnf))
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)