summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-12-23 17:11:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-12-23 17:11:00 (GMT)
commitb280e2bac2fcb56bd1a689426ca59e27da6564d7 (patch)
tree59db13a0671118b4847a209711c2923e1ae72a9d /Mac
parent3097463ef93bf422dadfa33e3ca0a97d23680a14 (diff)
downloadcpython-b280e2bac2fcb56bd1a689426ca59e27da6564d7.zip
cpython-b280e2bac2fcb56bd1a689426ca59e27da6564d7.tar.gz
cpython-b280e2bac2fcb56bd1a689426ca59e27da6564d7.tar.bz2
Moved resources around to forestall conflicts with debuggee
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/twit/TwitCore.py10
-rw-r--r--Mac/Tools/twit/mac_widgets.py9
-rw-r--r--Mac/Tools/twit/mactwit_app.py4
-rw-r--r--Mac/Tools/twit/mactwit_browser.py4
-rw-r--r--Mac/Tools/twit/mactwit_mod.py2
-rw-r--r--Mac/Tools/twit/mactwit_stack.py2
-rw-r--r--Mac/Tools/twit/twit.py2
-rw-r--r--Mac/Tools/twit/twit.rsrc.hqx4
8 files changed, 20 insertions, 17 deletions
diff --git a/Mac/Tools/twit/TwitCore.py b/Mac/Tools/twit/TwitCore.py
index a4d68bd..8cd8c0e 100644
--- a/Mac/Tools/twit/TwitCore.py
+++ b/Mac/Tools/twit/TwitCore.py
@@ -15,11 +15,11 @@ SIMPLE_TYPES=(
)
# XXXX Mac-specific
-ICON_NORMAL=512
-ICON_RETURN=515
-ICON_CALL=516
-ICON_ZERO=517
-ICON_DEAD=518
+ICON_NORMAL=500
+ICON_RETURN=503
+ICON_CALL=504
+ICON_ZERO=505
+ICON_DEAD=506
class DebuggerStuff(bdb.Bdb):
diff --git a/Mac/Tools/twit/mac_widgets.py b/Mac/Tools/twit/mac_widgets.py
index 5e39feb..569214f 100644
--- a/Mac/Tools/twit/mac_widgets.py
+++ b/Mac/Tools/twit/mac_widgets.py
@@ -17,7 +17,10 @@ TEXTWIDTH=4096 # More-or-less random value
TEXTFONT=4
TEXTSIZE=9
-PIC_BREAK=513
+# Resource numbers
+PIC_CURRENT=500
+PIC_BREAK=501
+
picture_cache={}
class MT_TextWidget:
@@ -184,14 +187,14 @@ class MT_IconTextWidget(MT_TextWidget):
self.terect[0]-1, self.rect[3]-SCROLLBAR)
self.curlinerange = (self.terect[1]+self.ted.lineHeight,
self.terect[3]-2*self.ted.lineHeight)
- self.piccurrent = 512
+ self.piccurrent = PIC_CURRENT
def setbreaks(self, list):
self.breakpointlist = list[:]
Qd.SetPort(self.wid)
Win.InvalRect(self.iconrect)
- def setcurline(self, line, pic=512):
+ def setcurline(self, line, pic=PIC_CURRENT):
self.curline = line
self.piccurrent = pic
Qd.SetPort(self.wid)
diff --git a/Mac/Tools/twit/mactwit_app.py b/Mac/Tools/twit/mactwit_app.py
index ed96af5..4b8433a 100644
--- a/Mac/Tools/twit/mactwit_app.py
+++ b/Mac/Tools/twit/mactwit_app.py
@@ -20,9 +20,9 @@ import macfs
import string
# Resource-id (for checking existence)
-ID_MODULES=512
+ID_MODULES=500
-ID_ABOUT=515
+ID_ABOUT=502
_arrow = Qd.qd.arrow
_watch = Qd.GetCursor(4).data
diff --git a/Mac/Tools/twit/mactwit_browser.py b/Mac/Tools/twit/mactwit_browser.py
index 5de8716..4c71146 100644
--- a/Mac/Tools/twit/mactwit_browser.py
+++ b/Mac/Tools/twit/mactwit_browser.py
@@ -27,7 +27,7 @@ import Res
import Qd
import List
import sys
-from types import *
+from Types import *
from QuickDraw import *
import string
import time
@@ -37,7 +37,7 @@ import os
start_object = sys
# Resource definitions
-ID_MAIN = 516
+ID_MAIN = 503
NUM_LISTS = 4 # the number of lists used. could be changed, but the dlg item numbers should be consistent
MAIN_TITLE = 3 # this is only the first text item, the other three ID's should be 5, 7 and 9
MAIN_LIST = 4 # this is only the first list, the other three ID's should be 6, 8 and 10
diff --git a/Mac/Tools/twit/mactwit_mod.py b/Mac/Tools/twit/mactwit_mod.py
index eb3d84d..8c54480 100644
--- a/Mac/Tools/twit/mactwit_mod.py
+++ b/Mac/Tools/twit/mactwit_mod.py
@@ -10,7 +10,7 @@ import TwitCore
from mac_widgets import MT_AnyList, MT_IconTextWidget
# Our dialogs
-ID_MODULES=512
+ID_MODULES=500
I_MODULES_TITLE=1
I_MODULES=2
I_VARS_TITLE=3
diff --git a/Mac/Tools/twit/mactwit_stack.py b/Mac/Tools/twit/mactwit_stack.py
index d15f5f9..e38fec3 100644
--- a/Mac/Tools/twit/mactwit_stack.py
+++ b/Mac/Tools/twit/mactwit_stack.py
@@ -10,7 +10,7 @@ import TwitCore
from mac_widgets import MT_AnyList, MT_IndexList, MT_IconTextWidget
# Our dialogs
-ID_STACK=513
+ID_STACK=501
I_STACK_TITLE=1
I_STACK=2
I_VARS_TITLE=3
diff --git a/Mac/Tools/twit/twit.py b/Mac/Tools/twit/twit.py
index 6c6bad4..2cc3f41 100644
--- a/Mac/Tools/twit/twit.py
+++ b/Mac/Tools/twit/twit.py
@@ -20,7 +20,7 @@ if not dirname in sys.path:
if os.name == 'mac':
import MacOS
- MacOS.splash(515) # Try to show the splash screen
+ MacOS.splash(502) # Try to show the splash screen
import mactwit_app; twit_app = mactwit_app
else:
try:
diff --git a/Mac/Tools/twit/twit.rsrc.hqx b/Mac/Tools/twit/twit.rsrc.hqx
index a6a9a8f..3bc1259 100644
--- a/Mac/Tools/twit/twit.rsrc.hqx
+++ b/Mac/Tools/twit/twit.rsrc.hqx
@@ -2,7 +2,7 @@
:#A4hDA3ZFR0bB`"bFh*M8P0&4!%!N!HdV-5P!*!%!3!!!,)5!!#a%J!!!TS!!!$
`DIrr)"H6)!!#JH$`Drrr)"H8*!#3"2"[rrmJ#A4hDA3ZFR0bB`)!!!!rN!J!N!`
-rN!J!N"LZUS!V!*!'Y+`!m(Errb!AR%3!N!6`Grrr)"HG5!#3"2"irrmJ&jj-!*!
+rN!J!N"LZaQ0F!*!'Y+`!m(Errb!AR%3!N!6`Grrr)"HG5!#3"2"irrmJ&jj-!*!
%m(Rrrb!ARe!!N!6`H[rr)"HJ9!#3"2"lrrmJ&k&B!*!%m(crrf!ASP`!N!6`IIr
r)"HMB!#3"2#!rrmJ&k4N!*!&!rrr)"HPD!!#G#LrK2rr)"G2)!#3"#S!6!"S!AJ
#'J!%!3!"!*!&!J!99(GTG#!Y)%e[C(9XC5"LFQphFf9b!!!!,`!U!"!"``(8!!3
@@ -922,4 +922,4 @@ UD@0c)`!!!EC659T&!!!"`J)!N!88+3*%8Q`#!3!2!!!8Z`*%8R3#!`"I!!!5R!*
08h4KBfXJBR*[Gh0PFJe6G'&MDb"LFQphFf9b$Ne[C(9XC5"LFQphFf9b"8&bFQp
h#Q*bC@&VF'pTER3*3@*[GA3JBQpi#8&LEh9d)'*[H!P"BQpeG#"LEhJ16@pNG@a
P)'*bEhGcCA)08h4KBfXJBR*[Gh0PFJY@BA)JBR*[Gh0PFJj#FQphFf9b)(GTEQ4
-[G`j2GfjPFL"bCA0[GA*MC8aE:
+[G`j2GfjPFL"bCA0[GA*MCF65: