summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/twit/mactwit_mod.py
diff options
context:
space:
mode:
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)