diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-10-09 09:38:46 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-10-09 09:38:46 (GMT) |
commit | 0eb8837560267d537fcd17f3c5c75f6c3f80aa4a (patch) | |
tree | 687a75a6c9a3d5545217043d71e1eceab3092ad5 /Mac/Tools/twit/mactwit_mod.py | |
parent | b96aeafdc37cf9ba65ab5353ff3e318cf209e8e2 (diff) | |
download | cpython-0eb8837560267d537fcd17f3c5c75f6c3f80aa4a.zip cpython-0eb8837560267d537fcd17f3c5c75f6c3f80aa4a.tar.gz cpython-0eb8837560267d537fcd17f3c5c75f6c3f80aa4a.tar.bz2 |
Prepared for Tk windowing implementation
Diffstat (limited to 'Mac/Tools/twit/mactwit_mod.py')
-rw-r--r-- | Mac/Tools/twit/mactwit_mod.py | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/Mac/Tools/twit/mactwit_mod.py b/Mac/Tools/twit/mactwit_mod.py index 24eb2bd..eb3d84d 100644 --- a/Mac/Tools/twit/mactwit_mod.py +++ b/Mac/Tools/twit/mactwit_mod.py @@ -27,16 +27,15 @@ class ModuleBrowser(FrameWork.DialogWindow, TwitCore.ModuleBrowser): self.SetPort() Qd.TextFont(3) Qd.TextSize(9) - self.mi_open(module) - - def create_items(self): - """Create the lists we need""" + tp, h, rect = self.wid.GetDialogItem(I_MODULES) self.modules = MT_AnyList(self.wid, rect, 1) tp, h, rect = self.wid.GetDialogItem(I_VARS) self.vars = MT_AnyList(self.wid, rect, 2) tp, h, rect = self.wid.GetDialogItem(I_SOURCE) self.source = MT_IconTextWidget(self.wid, rect) + + self.mi_open(module) def setsource(self, msg): tp, h, rect = self.wid.GetDialogItem(I_SOURCE_TITLE) @@ -45,7 +44,25 @@ class ModuleBrowser(FrameWork.DialogWindow, TwitCore.ModuleBrowser): else: Dlg.SetDialogItemText(h, msg) self.source.setcontent(self.cur_source) + + def source_setbreaks(self, list): + self.source.setbreaks(list) + + def source_setline(self, lineno, icon): + self.source.setcurline(lineno, icon) + def source_select(self, lineno): + self.source.select(lineno) + + def setmodulenames(self): + self.modules.setcontent(self.cont_modules) + + def module_select(self, number): + self.modules.select(number) + + def setvars(self): + self.vars.setcontent(self.cont_varnames, self.cont_varvalues) + def do_itemhit(self, item, event): (what, message, when, where, modifiers) = event Qd.SetPort(self.wid) |