summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/twit/mactwit_mod.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-26 16:26:05 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-26 16:26:05 (GMT)
commita1560cfb294f35e5d295b13f372eac0a5d7f59d7 (patch)
treeb29f27df9e1c6da8a5f0248e9a4a0f0c9387b268 /Mac/Tools/twit/mactwit_mod.py
parentb1667ef782af47a55d438382e7e63b75f77a1054 (diff)
downloadcpython-a1560cfb294f35e5d295b13f372eac0a5d7f59d7.zip
cpython-a1560cfb294f35e5d295b13f372eac0a5d7f59d7.tar.gz
cpython-a1560cfb294f35e5d295b13f372eac0a5d7f59d7.tar.bz2
- Simplified inheritance structure (still not good enough)
- Added menubar in stead of buttons - (optionally) switch menubar back and forth to facilitate debugging FrameWork applications - Handle "Open Document" appleevent - Fixed click in grow-box location - Allow a new debug session after previous one has finished
Diffstat (limited to 'Mac/Tools/twit/mactwit_mod.py')
-rw-r--r--Mac/Tools/twit/mactwit_mod.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mac/Tools/twit/mactwit_mod.py b/Mac/Tools/twit/mactwit_mod.py
index e3a42bb..24eb2bd 100644
--- a/Mac/Tools/twit/mactwit_mod.py
+++ b/Mac/Tools/twit/mactwit_mod.py
@@ -6,6 +6,7 @@ import Win
import FrameWork
import EasyDialogs
import sys
+import TwitCore
from mac_widgets import MT_AnyList, MT_IconTextWidget
# Our dialogs
@@ -19,7 +20,7 @@ I_SOURCE=6
I_RULER=7
I_EDIT=8
-class ModuleBrowser(FrameWork.DialogWindow):
+class ModuleBrowser(FrameWork.DialogWindow, TwitCore.ModuleBrowser):
"""The module-browser dialog - mac-dependent part"""
def open(self, module):
FrameWork.DialogWindow.open(self, ID_MODULES)
@@ -74,6 +75,10 @@ class ModuleBrowser(FrameWork.DialogWindow):
self.vars.update(rgn)
self.source.update(rgn)
+ def force_redraw(self):
+ Qd.SetPort(self.wid)
+ Win.InvalRgn(self.wid.GetWindowPort().visRgn)
+
def do_activate(self, activate, event):
self.modules.activate(activate)
self.vars.activate(activate)