Lines Matching refs:self
86 that supports the self.tk.call method.
89 def tix_addbitmapdir(self, directory):
99 return self.tk.call('tix', 'addbitmapdir', directory)
101 def tix_cget(self, option):
106 return self.tk.call('tix', 'cget', option)
108 def tix_configure(self, cnf=None, **kw):
125 return self._getconfigure('tix', 'configure')
127 return self._getconfigure1('tix', 'configure', '-'+cnf)
128 return self.tk.call(('tix', 'configure') + self._options(cnf))
130 def tix_filedialog(self, dlgclass=None):
140 return self.tk.call('tix', 'filedialog', dlgclass)
142 return self.tk.call('tix', 'filedialog')
144 def tix_getbitmap(self, name):
153 return self.tk.call('tix', 'getbitmap', name)
155 def tix_getimage(self, name):
167 return self.tk.call('tix', 'getimage', name)
169 def tix_option_get(self, name):
183 # could use self.tk.globalgetvar('tixOption', name)
184 return self.tk.call('tix', 'option', 'get', name)
186 def tix_resetoptions(self, newScheme, newFontSet, newScmPrio=None):
202 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet, newScmPrio)
204 return self.tk.call('tix', 'resetoptions', newScheme, newFontSet)
209 def __init__(self, screenName=None, baseName=None, className='Tix'):
210 tkinter.Tk.__init__(self, screenName, baseName, className)
212 self.tk.eval('global auto_path; lappend auto_path [file dir [info nameof]]')
214 self.tk.eval('global auto_path; lappend auto_path {%s}' % tixlib)
215 self.tk.eval('global tcl_pkgPath; lappend tcl_pkgPath {%s}' % tixlib)
221 self.tk.eval('package require Tix')
223 def destroy(self):
225 self.protocol("WM_DELETE_WINDOW", "")
226 tkinter.Tk.destroy(self)
235 def config(self, cnf={}, **kw):
236 self.tk.call('tixForm', self._w, *self._options(cnf, kw))
240 def __setitem__(self, key, value):
241 Form.form(self, {key: value})
243 def check(self):
244 return self.tk.call('tixForm', 'check', self._w)
246 def forget(self):
247 self.tk.call('tixForm', 'forget', self._w)
249 def grid(self, xsize=0, ysize=0):
251 x = self.tk.call('tixForm', 'grid', self._w)
252 y = self.tk.splitlist(x)
255 z = z + (self.tk.getint(x),)
257 return self.tk.call('tixForm', 'grid', self._w, xsize, ysize)
259 def info(self, option=None):
261 return self.tk.call('tixForm', 'info', self._w)
264 return self.tk.call('tixForm', 'info', self._w, option)
266 def slaves(self):
267 return [self._nametowidget(x) for x in
268 self.tk.splitlist(
269 self.tk.call(
270 'tixForm', 'slaves', self._w))]
289 def __init__ (self, master=None, widgetName=None,
312 self.widgetName = widgetName
313 self._setup(master, cnf)
318 self.tk.call(widgetName, self._w, *extra)
322 Widget.config(self, cnf)
327 self.subwidget_list = {}
334 def __getattr__(self, name):
335 if name in self.subwidget_list:
336 return self.subwidget_list[name]
339 def set_silent(self, value):
341 self.tk.call('tixSetSilent', self._w, value)
343 def subwidget(self, name):
346 n = self._subwidget_name(name)
348 raise TclError("Subwidget " + name + " not child of " + self._name)
350 n = n[len(self._w)+1:]
351 return self._nametowidget(n)
353 def subwidgets_all(self):
355 names = self._subwidget_names()
360 name = name[len(self._w)+1:]
362 retlist.append(self._nametowidget(name))
368 def _subwidget_name(self,name):
371 return self.tk.call(self._w, 'subwidget', name)
375 def _subwidget_names(self):
378 x = self.tk.call(self._w, 'subwidgets', '-all')
379 return self.tk.splitlist(x)
383 def config_all(self, option, value):
384 """Set configuration options for all subwidgets (and self)."""
391 names = self._subwidget_names()
393 self.tk.call(name, 'configure', '-' + option, value)
395 def image_create(self, imgtype, cnf={}, master=None, **kw):
397 master = self
403 v = self._register(v)
406 def image_delete(self, imgname):
408 self.tk.call('image', 'delete', imgname)
423 def __init__(self, master, name,
435 TixWidget.__init__(self, master, None, None, {'name' : name})
452 TixWidget.__init__(self, parent, None, None, {'name' : name})
453 self.destroy_physically = destroy_physically
455 def destroy(self):
460 for c in list(self.children.values()): c.destroy()
461 if self._name in self.master.children:
462 del self.master.children[self._name]
463 if self._name in self.master.subwidget_list:
464 del self.master.subwidget_list[self._name]
465 if self.destroy_physically:
467 self.tk.call('destroy', self._w)
476 def __init__(self, itemtype, cnf={}, *, master=None, **kw):
484 self.tk = master.tk
485 self.stylename = self.tk.call('tixDisplayStyle', itemtype,
486 *self._options(cnf,kw) )
488 def __str__(self):
489 return self.stylename
491 def _options(self, cnf, kw):
501 def delete(self):
502 self.tk.call(self.stylename, 'delete')
504 def __setitem__(self,key,value):
505 self.tk.call(self.stylename, 'configure', '-%s'%key, value)
507 def config(self, cnf={}, **kw):
508 return self._getconfigure(
509 self.stylename, 'configure', *self._options(cnf,kw))
511 def __getitem__(self,key):
512 return self.tk.call(self.stylename, 'cget', '-%s'%key)
528 def __init__(self, master=None, cnf={}, **kw):
532 TixWidget.__init__(self, master, 'tixBalloon', static, cnf, kw)
533 self.subwidget_list['label'] = _dummyLabel(self, 'label',
535 self.subwidget_list['message'] = _dummyLabel(self, 'message',
538 def bind_widget(self, widget, cnf={}, **kw):
541 self.tk.call(self._w, 'bind', widget._w, *self._options(cnf, kw))
543 def unbind_widget(self, widget):
544 self.tk.call(self._w, 'unbind', widget._w)
550 def __init__(self, master=None, cnf={}, **kw):
551 TixWidget.__init__(self, master, 'tixButtonBox',
554 def add(self, name, cnf={}, **kw):
557 btn = self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
558 self.subwidget_list[name] = _dummyButton(self, name)
561 def invoke(self, name):
562 if name in self.subwidget_list:
563 self.tk.call(self._w, 'invoke', name)
579 def __init__ (self, master=None, cnf={}, **kw):
580 TixWidget.__init__(self, master, 'tixComboBox',
583 self.subwidget_list['label'] = _dummyLabel(self, 'label')
584 self.subwidget_list['entry'] = _dummyEntry(self, 'entry')
585 self.subwidget_list['arrow'] = _dummyButton(self, 'arrow')
586 self.subwidget_list['slistbox'] = _dummyScrolledListBox(self,
589 self.subwidget_list['tick'] = _dummyButton(self, 'tick')
590 self.subwidget_list['cross'] = _dummyButton(self, 'cross')
597 def add_history(self, str):
598 self.tk.call(self._w, 'addhistory', str)
600 def append_history(self, str):
601 self.tk.call(self._w, 'appendhistory', str)
603 def insert(self, index, str):
604 self.tk.call(self._w, 'insert', index, str)
606 def pick(self, index):
607 self.tk.call(self._w, 'pick', index)
623 def __init__ (self, master=None, cnf={}, **kw):
624 TixWidget.__init__(self, master, 'tixControl', ['options'], cnf, kw)
625 self.subwidget_list['incr'] = _dummyButton(self, 'incr')
626 self.subwidget_list['decr'] = _dummyButton(self, 'decr')
627 self.subwidget_list['label'] = _dummyLabel(self, 'label')
628 self.subwidget_list['entry'] = _dummyEntry(self, 'entry')
630 def decrement(self):
631 self.tk.call(self._w, 'decr')
633 def increment(self):
634 self.tk.call(self._w, 'incr')
636 def invoke(self):
637 self.tk.call(self._w, 'invoke')
639 def update(self):
640 self.tk.call(self._w, 'update')
654 def __init__(self, master, cnf={}, **kw):
655 TixWidget.__init__(self, master, 'tixDirList', ['options'], cnf, kw)
656 self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
657 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
658 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
660 def chdir(self, dir):
661 self.tk.call(self._w, 'chdir', dir)
676 def __init__(self, master, cnf={}, **kw):
677 TixWidget.__init__(self, master, 'tixDirTree', ['options'], cnf, kw)
678 self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
679 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
680 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
682 def chdir(self, dir):
683 self.tk.call(self._w, 'chdir', dir)
699 def __init__(self, master, cnf={}, **kw):
700 TixWidget.__init__(self, master, 'tixDirSelectBox', ['options'], cnf, kw)
701 self.subwidget_list['dirlist'] = _dummyDirList(self, 'dirlist')
702 self.subwidget_list['dircbx'] = _dummyFileComboBox(self, 'dircbx')
719 def __init__(self, master, cnf={}, **kw):
720 TixWidget.__init__(self, master, 'tixExFileSelectBox', ['options'], cnf, kw)
721 self.subwidget_list['cancel'] = _dummyButton(self, 'cancel')
722 self.subwidget_list['ok'] = _dummyButton(self, 'ok')
723 self.subwidget_list['hidden'] = _dummyCheckbutton(self, 'hidden')
724 self.subwidget_list['types'] = _dummyComboBox(self, 'types')
725 self.subwidget_list['dir'] = _dummyComboBox(self, 'dir')
726 self.subwidget_list['dirlist'] = _dummyDirList(self, 'dirlist')
727 self.subwidget_list['file'] = _dummyComboBox(self, 'file')
728 self.subwidget_list['filelist'] = _dummyScrolledListBox(self, 'filelist')
730 def filter(self):
731 self.tk.call(self._w, 'filter')
733 def invoke(self):
734 self.tk.call(self._w, 'invoke')
748 def __init__(self, master, cnf={}, **kw):
749 TixWidget.__init__(self, master, 'tixDirSelectDialog',
751 self.subwidget_list['dirbox'] = _dummyDirSelectBox(self, 'dirbox')
754 def popup(self):
755 self.tk.call(self._w, 'popup')
757 def popdown(self):
758 self.tk.call(self._w, 'popdown')
771 def __init__(self, master, cnf={}, **kw):
772 TixWidget.__init__(self, master, 'tixExFileSelectDialog',
774 self.subwidget_list['fsbox'] = _dummyExFileSelectBox(self, 'fsbox')
776 def popup(self):
777 self.tk.call(self._w, 'popup')
779 def popdown(self):
780 self.tk.call(self._w, 'popdown')
796 def __init__(self, master, cnf={}, **kw):
797 TixWidget.__init__(self, master, 'tixFileSelectBox', ['options'], cnf, kw)
798 self.subwidget_list['dirlist'] = _dummyScrolledListBox(self, 'dirlist')
799 self.subwidget_list['filelist'] = _dummyScrolledListBox(self, 'filelist')
800 self.subwidget_list['filter'] = _dummyComboBox(self, 'filter')
801 self.subwidget_list['selection'] = _dummyComboBox(self, 'selection')
803 def apply_filter(self): # name of subwidget is same as command
804 self.tk.call(self._w, 'filter')
806 def invoke(self):
807 self.tk.call(self._w, 'invoke')
819 def __init__(self, master, cnf={}, **kw):
820 TixWidget.__init__(self, master, 'tixFileSelectDialog',
822 self.subwidget_list['btns'] = _dummyStdButtonBox(self, 'btns')
823 self.subwidget_list['fsbox'] = _dummyFileSelectBox(self, 'fsbox')
825 def popup(self):
826 self.tk.call(self._w, 'popup')
828 def popdown(self):
829 self.tk.call(self._w, 'popdown')
843 def __init__(self, master, cnf={}, **kw):
844 TixWidget.__init__(self, master, 'tixFileEntry',
846 self.subwidget_list['button'] = _dummyButton(self, 'button')
847 self.subwidget_list['entry'] = _dummyEntry(self, 'entry')
849 def invoke(self):
850 self.tk.call(self._w, 'invoke')
852 def file_dialog(self):
864 def __init__ (self,master=None,cnf={}, **kw):
865 TixWidget.__init__(self, master, 'tixHList',
868 def add(self, entry, cnf={}, **kw):
869 return self.tk.call(self._w, 'add', entry, *self._options(cnf, kw))
871 def add_child(self, parent=None, cnf={}, **kw):
874 return self.tk.call(
875 self._w, 'addchild', parent, *self._options(cnf, kw))
877 def anchor_set(self, entry):
878 self.tk.call(self._w, 'anchor', 'set', entry)
880 def anchor_clear(self):
881 self.tk.call(self._w, 'anchor', 'clear')
883 def column_width(self, col=0, width=None, chars=None):
885 return self.tk.call(self._w, 'column', 'width', col, width)
887 return self.tk.call(self._w, 'column', 'width', col,
890 def delete_all(self):
891 self.tk.call(self._w, 'delete', 'all')
893 def delete_entry(self, entry):
894 self.tk.call(self._w, 'delete', 'entry', entry)
896 def delete_offsprings(self, entry):
897 self.tk.call(self._w, 'delete', 'offsprings', entry)
899 def delete_siblings(self, entry):
900 self.tk.call(self._w, 'delete', 'siblings', entry)
902 def dragsite_set(self, index):
903 self.tk.call(self._w, 'dragsite', 'set', index)
905 def dragsite_clear(self):
906 self.tk.call(self._w, 'dragsite', 'clear')
908 def dropsite_set(self, index):
909 self.tk.call(self._w, 'dropsite', 'set', index)
911 def dropsite_clear(self):
912 self.tk.call(self._w, 'dropsite', 'clear')
914 def header_create(self, col, cnf={}, **kw):
915 self.tk.call(self._w, 'header', 'create', col, *self._options(cnf, kw))
917 def header_configure(self, col, cnf={}, **kw):
919 return self._getconfigure(self._w, 'header', 'configure', col)
920 self.tk.call(self._w, 'header', 'configure', col,
921 *self._options(cnf, kw))
923 def header_cget(self, col, opt):
924 return self.tk.call(self._w, 'header', 'cget', col, opt)
926 def header_exists(self, col):
930 return self.tk.getboolean(self.tk.call(self._w, 'header', 'exist', col))
933 def header_delete(self, col):
934 self.tk.call(self._w, 'header', 'delete', col)
936 def header_size(self, col):
937 return self.tk.call(self._w, 'header', 'size', col)
939 def hide_entry(self, entry):
940 self.tk.call(self._w, 'hide', 'entry', entry)
942 def indicator_create(self, entry, cnf={}, **kw):
943 self.tk.call(
944 self._w, 'indicator', 'create', entry, *self._options(cnf, kw))
946 def indicator_configure(self, entry, cnf={}, **kw):
948 return self._getconfigure(
949 self._w, 'indicator', 'configure', entry)
950 self.tk.call(
951 self._w, 'indicator', 'configure', entry, *self._options(cnf, kw))
953 def indicator_cget(self, entry, opt):
954 return self.tk.call(self._w, 'indicator', 'cget', entry, opt)
956 def indicator_exists(self, entry):
957 return self.tk.call (self._w, 'indicator', 'exists', entry)
959 def indicator_delete(self, entry):
960 self.tk.call(self._w, 'indicator', 'delete', entry)
962 def indicator_size(self, entry):
963 return self.tk.call(self._w, 'indicator', 'size', entry)
965 def info_anchor(self):
966 return self.tk.call(self._w, 'info', 'anchor')
968 def info_bbox(self, entry):
969 return self._getints(
970 self.tk.call(self._w, 'info', 'bbox', entry)) or None
972 def info_children(self, entry=None):
973 c = self.tk.call(self._w, 'info', 'children', entry)
974 return self.tk.splitlist(c)
976 def info_data(self, entry):
977 return self.tk.call(self._w, 'info', 'data', entry)
979 def info_dragsite(self):
980 return self.tk.call(self._w, 'info', 'dragsite')
982 def info_dropsite(self):
983 return self.tk.call(self._w, 'info', 'dropsite')
985 def info_exists(self, entry):
986 return self.tk.call(self._w, 'info', 'exists', entry)
988 def info_hidden(self, entry):
989 return self.tk.call(self._w, 'info', 'hidden', entry)
991 def info_next(self, entry):
992 return self.tk.call(self._w, 'info', 'next', entry)
994 def info_parent(self, entry):
995 return self.tk.call(self._w, 'info', 'parent', entry)
997 def info_prev(self, entry):
998 return self.tk.call(self._w, 'info', 'prev', entry)
1000 def info_selection(self):
1001 c = self.tk.call(self._w, 'info', 'selection')
1002 return self.tk.splitlist(c)
1004 def item_cget(self, entry, col, opt):
1005 return self.tk.call(self._w, 'item', 'cget', entry, col, opt)
1007 def item_configure(self, entry, col, cnf={}, **kw):
1009 return self._getconfigure(self._w, 'item', 'configure', entry, col)
1010 self.tk.call(self._w, 'item', 'configure', entry, col,
1011 *self._options(cnf, kw))
1013 def item_create(self, entry, col, cnf={}, **kw):
1014 self.tk.call(
1015 self._w, 'item', 'create', entry, col, *self._options(cnf, kw))
1017 def item_exists(self, entry, col):
1018 return self.tk.call(self._w, 'item', 'exists', entry, col)
1020 def item_delete(self, entry, col):
1021 self.tk.call(self._w, 'item', 'delete', entry, col)
1023 def entrycget(self, entry, opt):
1024 return self.tk.call(self._w, 'entrycget', entry, opt)
1026 def entryconfigure(self, entry, cnf={}, **kw):
1028 return self._getconfigure(self._w, 'entryconfigure', entry)
1029 self.tk.call(self._w, 'entryconfigure', entry,
1030 *self._options(cnf, kw))
1032 def nearest(self, y):
1033 return self.tk.call(self._w, 'nearest', y)
1035 def see(self, entry):
1036 self.tk.call(self._w, 'see', entry)
1038 def selection_clear(self, cnf={}, **kw):
1039 self.tk.call(self._w, 'selection', 'clear', *self._options(cnf, kw))
1041 def selection_includes(self, entry):
1042 return self.tk.call(self._w, 'selection', 'includes', entry)
1044 def selection_set(self, first, last=None):
1045 self.tk.call(self._w, 'selection', 'set', first, last)
1047 def show_entry(self, entry):
1048 return self.tk.call(self._w, 'show', 'entry', entry)
1055 def __init__ (self,master=None,cnf={}, **kw):
1056 TixWidget.__init__(self, master, 'tixInputOnly', None, cnf, kw)
1068 def __init__ (self,master=None,cnf={}, **kw):
1069 TixWidget.__init__(self, master, 'tixLabelEntry',
1071 self.subwidget_list['label'] = _dummyLabel(self, 'label')
1072 self.subwidget_list['entry'] = _dummyEntry(self, 'entry')
1085 def __init__ (self,master=None,cnf={}, **kw):
1086 TixWidget.__init__(self, master, 'tixLabelFrame',
1088 self.subwidget_list['label'] = _dummyLabel(self, 'label')
1089 self.subwidget_list['frame'] = _dummyFrame(self, 'frame')
1100 def __init__(self, master, cnf={}, **kw):
1101 TixWidget.__init__(self, master, 'tixListNoteBook', ['options'], cnf, kw)
1103 self.subwidget_list['pane'] = _dummyPanedWindow(self, 'pane',
1105 self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
1106 self.subwidget_list['shlist'] = _dummyScrolledHList(self, 'shlist')
1108 def add(self, name, cnf={}, **kw):
1109 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1110 self.subwidget_list[name] = TixSubWidget(self, name)
1111 return self.subwidget_list[name]
1113 def page(self, name):
1114 return self.subwidget(name)
1116 def pages(self):
1118 names = self.tk.splitlist(self.tk.call(self._w, 'pages'))
1121 ret.append(self.subwidget(x))
1124 def raise_page(self, name): # raise is a python keyword
1125 self.tk.call(self._w, 'raise', name)
1132 def __init__(self, master=None, cnf={}, **kw):
1133 TixWidget.__init__(self, master, 'tixMeter',
1144 def __init__ (self,master=None,cnf={}, **kw):
1145 TixWidget.__init__(self,master,'tixNoteBook', ['options'], cnf, kw)
1146 self.subwidget_list['nbframe'] = TixSubWidget(self, 'nbframe',
1149 def add(self, name, cnf={}, **kw):
1150 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1151 self.subwidget_list[name] = TixSubWidget(self, name)
1152 return self.subwidget_list[name]
1154 def delete(self, name):
1155 self.tk.call(self._w, 'delete', name)
1156 self.subwidget_list[name].destroy()
1157 del self.subwidget_list[name]
1159 def page(self, name):
1160 return self.subwidget(name)
1162 def pages(self):
1164 names = self.tk.splitlist(self.tk.call(self._w, 'pages'))
1167 ret.append(self.subwidget(x))
1170 def raise_page(self, name): # raise is a python keyword
1171 self.tk.call(self._w, 'raise', name)
1173 def raised(self):
1174 return self.tk.call(self._w, 'raised')
1188 def __init__(self, master, cnf={}, **kw):
1189 TixWidget.__init__(self, master, 'tixOptionMenu', ['options'], cnf, kw)
1190 self.subwidget_list['menubutton'] = _dummyMenubutton(self, 'menubutton')
1191 self.subwidget_list['menu'] = _dummyMenu(self, 'menu')
1193 def add_command(self, name, cnf={}, **kw):
1194 self.tk.call(self._w, 'add', 'command', name, *self._options(cnf, kw))
1196 def add_separator(self, name, cnf={}, **kw):
1197 self.tk.call(self._w, 'add', 'separator', name, *self._options(cnf, kw))
1199 def delete(self, name):
1200 self.tk.call(self._w, 'delete', name)
1202 def disable(self, name):
1203 self.tk.call(self._w, 'disable', name)
1205 def enable(self, name):
1206 self.tk.call(self._w, 'enable', name)
1219 def __init__(self, master, cnf={}, **kw):
1220 TixWidget.__init__(self, master, 'tixPanedWindow', ['orientation', 'options'], cnf, kw)
1223 def add(self, name, cnf={}, **kw):
1224 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1225 self.subwidget_list[name] = TixSubWidget(self, name,
1227 return self.subwidget_list[name]
1229 def delete(self, name):
1230 self.tk.call(self._w, 'delete', name)
1231 self.subwidget_list[name].destroy()
1232 del self.subwidget_list[name]
1234 def forget(self, name):
1235 self.tk.call(self._w, 'forget', name)
1237 def panecget(self, entry, opt):
1238 return self.tk.call(self._w, 'panecget', entry, opt)
1240 def paneconfigure(self, entry, cnf={}, **kw):
1242 return self._getconfigure(self._w, 'paneconfigure', entry)
1243 self.tk.call(self._w, 'paneconfigure', entry, *self._options(cnf, kw))
1245 def panes(self):
1246 names = self.tk.splitlist(self.tk.call(self._w, 'panes'))
1247 return [self.subwidget(x) for x in names]
1261 def __init__(self, master, cnf={}, **kw):
1262 TixWidget.__init__(self, master, 'tixPopupMenu', ['options'], cnf, kw)
1263 self.subwidget_list['menubutton'] = _dummyMenubutton(self, 'menubutton')
1264 self.subwidget_list['menu'] = _dummyMenu(self, 'menu')
1266 def bind_widget(self, widget):
1267 self.tk.call(self._w, 'bind', widget._w)
1269 def unbind_widget(self, widget):
1270 self.tk.call(self._w, 'unbind', widget._w)
1272 def post_widget(self, widget, x, y):
1273 self.tk.call(self._w, 'post', widget._w, x, y)
1277 def __init__(self, master, cnf={}, **kw):
1284 TixWidget.__init__(self, master, 'tixResizeHandle',
1287 def attach_widget(self, widget):
1288 self.tk.call(self._w, 'attachwidget', widget._w)
1290 def detach_widget(self, widget):
1291 self.tk.call(self._w, 'detachwidget', widget._w)
1293 def hide(self, widget):
1294 self.tk.call(self._w, 'hide', widget._w)
1296 def show(self, widget):
1297 self.tk.call(self._w, 'show', widget._w)
1303 def __init__(self, master, cnf={}, **kw):
1304 TixWidget.__init__(self, master, 'tixScrolledHList', ['options'],
1306 self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
1307 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1308 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1314 def __init__(self, master, cnf={}, **kw):
1315 TixWidget.__init__(self, master, 'tixScrolledListBox', ['options'], cnf, kw)
1316 self.subwidget_list['listbox'] = _dummyListbox(self, 'listbox')
1317 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1318 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1324 def __init__(self, master, cnf={}, **kw):
1325 TixWidget.__init__(self, master, 'tixScrolledText', ['options'], cnf, kw)
1326 self.subwidget_list['text'] = _dummyText(self, 'text')
1327 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1328 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1334 def __init__(self, master, cnf={}, **kw):
1335 TixWidget.__init__(self, master, 'tixScrolledTList', ['options'],
1337 self.subwidget_list['tlist'] = _dummyTList(self, 'tlist')
1338 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1339 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1345 def __init__(self, master, cnf={}, **kw):
1346 TixWidget.__init__(self, master, 'tixScrolledWindow', ['options'], cnf, kw)
1347 self.subwidget_list['window'] = _dummyFrame(self, 'window')
1348 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1349 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1358 def __init__(self, master, cnf={}, **kw):
1359 TixWidget.__init__(self, master, 'tixSelect',
1363 self.subwidget_list['label'] = _dummyLabel(self, 'label')
1365 def add(self, name, cnf={}, **kw):
1366 self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
1367 self.subwidget_list[name] = _dummyButton(self, name)
1368 return self.subwidget_list[name]
1370 def invoke(self, name):
1371 self.tk.call(self._w, 'invoke', name)
1378 def __init__ (self,master=None,cnf={}, **kw):
1379 TixWidget.__init__(self, master, 'tixShell', ['options', 'title'], cnf, kw)
1390 def __init__ (self,master=None,cnf={}, **kw):
1391 TixWidget.__init__(self, master,
1397 def popdown(self):
1398 self.tk.call(self._w, 'popdown')
1400 def popup(self):
1401 self.tk.call(self._w, 'popup')
1403 def center(self):
1404 self.tk.call(self._w, 'center')
1409 def __init__(self, master=None, cnf={}, **kw):
1410 TixWidget.__init__(self, master, 'tixStdButtonBox',
1412 self.subwidget_list['ok'] = _dummyButton(self, 'ok')
1413 self.subwidget_list['apply'] = _dummyButton(self, 'apply')
1414 self.subwidget_list['cancel'] = _dummyButton(self, 'cancel')
1415 self.subwidget_list['help'] = _dummyButton(self, 'help')
1417 def invoke(self, name):
1418 if name in self.subwidget_list:
1419 self.tk.call(self._w, 'invoke', name)
1431 def __init__ (self,master=None,cnf={}, **kw):
1432 TixWidget.__init__(self, master, 'tixTList', ['options'], cnf, kw)
1434 def active_set(self, index):
1435 self.tk.call(self._w, 'active', 'set', index)
1437 def active_clear(self):
1438 self.tk.call(self._w, 'active', 'clear')
1440 def anchor_set(self, index):
1441 self.tk.call(self._w, 'anchor', 'set', index)
1443 def anchor_clear(self):
1444 self.tk.call(self._w, 'anchor', 'clear')
1446 def delete(self, from_, to=None):
1447 self.tk.call(self._w, 'delete', from_, to)
1449 def dragsite_set(self, index):
1450 self.tk.call(self._w, 'dragsite', 'set', index)
1452 def dragsite_clear(self):
1453 self.tk.call(self._w, 'dragsite', 'clear')
1455 def dropsite_set(self, index):
1456 self.tk.call(self._w, 'dropsite', 'set', index)
1458 def dropsite_clear(self):
1459 self.tk.call(self._w, 'dropsite', 'clear')
1461 def insert(self, index, cnf={}, **kw):
1462 self.tk.call(self._w, 'insert', index, *self._options(cnf, kw))
1464 def info_active(self):
1465 return self.tk.call(self._w, 'info', 'active')
1467 def info_anchor(self):
1468 return self.tk.call(self._w, 'info', 'anchor')
1470 def info_down(self, index):
1471 return self.tk.call(self._w, 'info', 'down', index)
1473 def info_left(self, index):
1474 return self.tk.call(self._w, 'info', 'left', index)
1476 def info_right(self, index):
1477 return self.tk.call(self._w, 'info', 'right', index)
1479 def info_selection(self):
1480 c = self.tk.call(self._w, 'info', 'selection')
1481 return self.tk.splitlist(c)
1483 def info_size(self):
1484 return self.tk.call(self._w, 'info', 'size')
1486 def info_up(self, index):
1487 return self.tk.call(self._w, 'info', 'up', index)
1489 def nearest(self, x, y):
1490 return self.tk.call(self._w, 'nearest', x, y)
1492 def see(self, index):
1493 self.tk.call(self._w, 'see', index)
1495 def selection_clear(self, cnf={}, **kw):
1496 self.tk.call(self._w, 'selection', 'clear', *self._options(cnf, kw))
1498 def selection_includes(self, index):
1499 return self.tk.call(self._w, 'selection', 'includes', index)
1501 def selection_set(self, first, last=None):
1502 self.tk.call(self._w, 'selection', 'set', first, last)
1510 def __init__(self, master=None, cnf={}, **kw):
1511 TixWidget.__init__(self, master, 'tixTree',
1513 self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
1514 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1515 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1517 def autosetmode(self):
1522 self.tk.call(self._w, 'autosetmode')
1524 def close(self, entrypath):
1526 self.tk.call(self._w, 'close', entrypath)
1528 def getmode(self, entrypath):
1530 return self.tk.call(self._w, 'getmode', entrypath)
1532 def open(self, entrypath):
1534 self.tk.call(self._w, 'open', entrypath)
1536 def setmode(self, entrypath, mode='none'):
1546 self.tk.call(self._w, 'setmode', entrypath, mode)
1557 def __init__(self, master=None, cnf={}, **kw):
1558 TixWidget.__init__(self, master, 'tixCheckList',
1560 self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
1561 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1562 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1564 def autosetmode(self):
1569 self.tk.call(self._w, 'autosetmode')
1571 def close(self, entrypath):
1573 self.tk.call(self._w, 'close', entrypath)
1575 def getmode(self, entrypath):
1577 return self.tk.call(self._w, 'getmode', entrypath)
1579 def open(self, entrypath):
1581 self.tk.call(self._w, 'open', entrypath)
1583 def getselection(self, mode='on'):
1587 return self.tk.splitlist(self.tk.call(self._w, 'getselection', mode))
1589 def getstatus(self, entrypath):
1591 return self.tk.call(self._w, 'getstatus', entrypath)
1593 def setstatus(self, entrypath, mode='on'):
1596 self.tk.call(self._w, 'setstatus', entrypath, mode)
1605 def __init__(self, master, name, destroy_physically=1):
1606 TixSubWidget.__init__(self, master, name, destroy_physically)
1609 def __init__(self, master, name, destroy_physically=1):
1610 TixSubWidget.__init__(self, master, name, destroy_physically)
1613 def __init__(self, master, name, destroy_physically=1):
1614 TixSubWidget.__init__(self, master, name, destroy_physically)
1617 def __init__(self, master, name, destroy_physically=1):
1618 TixSubWidget.__init__(self, master, name, destroy_physically)
1621 def __init__(self, master, name, destroy_physically=1):
1622 TixSubWidget.__init__(self, master, name, destroy_physically)
1625 def __init__(self, master, name, destroy_physically=1):
1626 TixSubWidget.__init__(self, master, name, destroy_physically)
1629 def __init__(self, master, name, destroy_physically=1):
1630 TixSubWidget.__init__(self, master, name, destroy_physically)
1633 def __init__(self, master, name, destroy_physically=1):
1634 TixSubWidget.__init__(self, master, name, destroy_physically)
1637 def __init__(self, master, name, destroy_physically=1):
1638 TixSubWidget.__init__(self, master, name, destroy_physically)
1641 def __init__(self, master, name, destroy_physically=1):
1642 TixSubWidget.__init__(self, master, name, destroy_physically)
1645 def __init__(self, master, name, destroy_physically=1):
1646 TixSubWidget.__init__(self, master, name, destroy_physically)
1647 self.subwidget_list['listbox'] = _dummyListbox(self, 'listbox')
1648 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1649 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1652 def __init__(self, master, name, destroy_physically=1):
1653 TixSubWidget.__init__(self, master, name, destroy_physically)
1656 def __init__(self, master, name, destroy_physically=1):
1657 TixSubWidget.__init__(self, master, name, destroy_physically)
1658 self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
1659 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1660 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1663 def __init__(self, master, name, destroy_physically=1):
1664 TixSubWidget.__init__(self, master, name, destroy_physically)
1667 def __init__(self, master, name, destroy_physically=1):
1668 TixSubWidget.__init__(self, master, name, ['fancy',destroy_physically])
1669 self.subwidget_list['label'] = _dummyLabel(self, 'label')
1670 self.subwidget_list['entry'] = _dummyEntry(self, 'entry')
1671 self.subwidget_list['arrow'] = _dummyButton(self, 'arrow')
1673 self.subwidget_list['slistbox'] = _dummyScrolledListBox(self,
1676 self.subwidget_list['tick'] = _dummyButton(self, 'tick')
1678 self.subwidget_list['cross'] = _dummyButton(self, 'cross')
1684 def __init__(self, master, name, destroy_physically=1):
1685 TixSubWidget.__init__(self, master, name, destroy_physically)
1686 self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
1687 self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb')
1688 self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
1691 def __init__(self, master, name, destroy_physically=1):
1692 TixSubWidget.__init__(self, master, name, destroy_physically)
1693 self.subwidget_list['dirlist'] = _dummyDirList(self, 'dirlist')
1694 self.subwidget_list['dircbx'] = _dummyFileComboBox(self, 'dircbx')
1697 def __init__(self, master, name, destroy_physically=1):
1698 TixSubWidget.__init__(self, master, name, destroy_physically)
1699 self.subwidget_list['cancel'] = _dummyButton(self, 'cancel')
1700 self.subwidget_list['ok'] = _dummyButton(self, 'ok')
1701 self.subwidget_list['hidden'] = _dummyCheckbutton(self, 'hidden')
1702 self.subwidget_list['types'] = _dummyComboBox(self, 'types')
1703 self.subwidget_list['dir'] = _dummyComboBox(self, 'dir')
1704 self.subwidget_list['dirlist'] = _dummyScrolledListBox(self, 'dirlist')
1705 self.subwidget_list['file'] = _dummyComboBox(self, 'file')
1706 self.subwidget_list['filelist'] = _dummyScrolledListBox(self, 'filelist')
1709 def __init__(self, master, name, destroy_physically=1):
1710 TixSubWidget.__init__(self, master, name, destroy_physically)
1711 self.subwidget_list['dirlist'] = _dummyScrolledListBox(self, 'dirlist')
1712 self.subwidget_list['filelist'] = _dummyScrolledListBox(self, 'filelist')
1713 self.subwidget_list['filter'] = _dummyComboBox(self, 'filter')
1714 self.subwidget_list['selection'] = _dummyComboBox(self, 'selection')
1717 def __init__(self, master, name, destroy_physically=1):
1718 TixSubWidget.__init__(self, master, name, destroy_physically)
1719 self.subwidget_list['dircbx'] = _dummyComboBox(self, 'dircbx')
1722 def __init__(self, master, name, destroy_physically=1):
1723 TixSubWidget.__init__(self, master, name, destroy_physically)
1724 self.subwidget_list['ok'] = _dummyButton(self, 'ok')
1725 self.subwidget_list['apply'] = _dummyButton(self, 'apply')
1726 self.subwidget_list['cancel'] = _dummyButton(self, 'cancel')
1727 self.subwidget_list['help'] = _dummyButton(self, 'help')
1730 def __init__(self, master, name, destroy_physically=0):
1731 TixSubWidget.__init__(self, master, name, destroy_physically)
1734 def __init__(self, master, name, destroy_physically=1):
1735 TixSubWidget.__init__(self, master, name, destroy_physically)
1790 def __init__(self, master=None, cnf={}, **kw):
1792 self.cnf= cnf
1793 TixWidget.__init__(self, master, 'tixGrid', static, cnf, kw)
1799 def anchor_clear(self):
1801 self.tk.call(self, 'anchor', 'clear')
1803 def anchor_get(self):
1805 return self._getints(self.tk.call(self, 'anchor', 'get'))
1807 def anchor_set(self, x, y):
1809 self.tk.call(self, 'anchor', 'set', x, y)
1811 def delete_row(self, from_, to=None):
1815 self.tk.call(self, 'delete', 'row', from_)
1817 self.tk.call(self, 'delete', 'row', from_, to)
1819 def delete_column(self, from_, to=None):
1823 self.tk.call(self, 'delete', 'column', from_)
1825 self.tk.call(self, 'delete', 'column', from_, to)
1827 def edit_apply(self):
1830 self.tk.call(self, 'edit', 'apply')
1832 def edit_set(self, x, y):
1835 self.tk.call(self, 'edit', 'set', x, y)
1837 def entrycget(self, x, y, option):
1841 return self.tk.call(self, 'entrycget', x, y, option)
1843 def entryconfigure(self, x, y, cnf=None, **kw):
1844 return self._configure(('entryconfigure', x, y), cnf, kw)
1849 def info_exists(self, x, y):
1851 return self._getboolean(self.tk.call(self, 'info', 'exists', x, y))
1853 def info_bbox(self, x, y):
1855 return self.tk.call(self, 'info', 'bbox', x, y)
1857 def move_column(self, from_, to, offset):
1861 self.tk.call(self, 'move', 'column', from_, to, offset)
1863 def move_row(self, from_, to, offset):
1867 self.tk.call(self, 'move', 'row', from_, to, offset)
1869 def nearest(self, x, y):
1871 return self._getints(self.tk.call(self, 'nearest', x, y))
1879 def set(self, x, y, itemtype=None, **kw):
1880 args= self._options(self.cnf, kw)
1883 self.tk.call(self, 'set', x, y, *args)
1885 def size_column(self, index, **kw):
1908 return self.tk.splitlist(self.tk.call(self._w, 'size', 'column', index,
1909 *self._options({}, kw)))
1911 def size_row(self, index, **kw):
1933 return self.tk.splitlist(self.tk.call(
1934 self, 'size', 'row', index, *self._options({}, kw)))
1936 def unset(self, x, y):
1938 self.tk.call(self._w, 'unset', x, y)
1945 def __init__(self, master=None, cnf={}, **kw):
1947 self.cnf= cnf
1948 TixWidget.__init__(self, master, 'tixScrolledGrid', static, cnf, kw)