0
0
mirror of https://github.com/python/cpython.git synced 2024-11-30 18:51:15 +01:00

Moved resources around to forestall conflicts with debuggee

This commit is contained in:
Jack Jansen 1996-12-23 17:11:00 +00:00
parent 3097463ef9
commit b280e2bac2
8 changed files with 20 additions and 17 deletions

View File

@ -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):

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -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: