# -*- mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*- # Wrapped from /disk/dos/k/Tixapps/src/Widgets/Verbiage.tcl import Tkinter, Tix, ObjTix class TIDEVerbiage(ObjTix.Widget): def __repr__ (self): return "" % self._w def __init__(self, master, name='', cnf={}, **kw): self.master = master self.tk = master.tk self.tk.eval('if {[info commands TIDEVerbiage] == ""} {auto_load TIDEVerbiage}') if kw: cnf = Tkinter._cnfmerge((cnf, kw)) static = ['options'] # This should be staticOptions, but I don't see why # you would ever want to use configure during creation. for x in self.tk.split(self.tk.eval('set TIDEVerbiage(options)')): static.append(x[1:]) ObjTix.Widget.__init__(self, master, 'TIDEVerbiage', static, cnf) def cAddExecPage (self): retval = self.tk.call(self._w, 'cAddExecPage') return retval def vOutputExec (self, text): retval = self.tk.call(self._w, 'vOutputExec', text) return retval def clear_exec (self): retval = self.tk.call(self._w, 'clear_exec') return retval def exec_fileevent (self, ofd, tmp=''): retval = self.tk.call(self._w, 'exec_fileevent', ofd, tmp) return retval def cAddFindPage (self): retval = self.tk.call(self._w, 'cAddFindPage') return retval def output_find (self, fileName, lineNum, pos, line): retval = self.tk.call(self._w, 'output_find', fileName, lineNum, pos, line) return retval def clear_find (self): retval = self.tk.call(self._w, 'clear_find') return retval def cAddHelpPage (self): retval = self.tk.call(self._w, 'cAddHelpPage') return retval def find_command (self, w): retval = self.tk.call(self._w, 'find_command', w) return retval def vOutputHelp (self, text): retval = self.tk.call(self._w, 'vOutputHelp', text) return retval def vClearHelp (self): retval = self.tk.call(self._w, 'vClearHelp') return retval def vGetHelp (self, topic=''): ''' Override this with your own help producer. ''' retval = self.tk.call(self._w, 'vGetHelp', topic) return retval def vExecScript (self, file='', arg='', opt='', help='', dir='', discard=1): retval = self.tk.call(self._w, 'vExecScript', file, arg, opt, help, dir, discard) return retval def vRunCommand (self, cmd, dir, discard=0): retval = self.tk.call(self._w, 'vRunCommand', cmd, dir, discard) return retval def vRunGrepEntry (self, entry): retval = self.tk.call(self._w, 'vRunGrepEntry', entry) return retval def vRunGrep (self, findStr='', dir=''): retval = self.tk.call(self._w, 'vRunGrep', findStr, dir) return retval def vRunFindEntry (self, entry): retval = self.tk.call(self._w, 'vRunFindEntry', entry) return retval def vRunFind (self, findStr='', dir=''): retval = self.tk.call(self._w, 'vRunFind', findStr, dir) return retval def subwidget (self, name): retval = self.tk.call(self._w, 'subwidget', name) return retval def cMkFindPopup (self, list): retval = self.tk.call(self._w, 'cMkFindPopup', list) return retval # For Python >= 2.2.1 __slots__ = ['FindSep','cExecWindow','cFindListBox','cHelpText','cNb','main'] if __name__ == '__main__': root = Tix.Tk() # Call your toplevel here