Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
01a2d9e2
Kaydet (Commit)
01a2d9e2
authored
Ock 29, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use FSpCreateResFile() in stead of CreateResFile().
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
üst
bf21bef2
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
18 deletions
+14
-18
htmled.py
Mac/Demo/waste/htmled.py
+2
-1
swed.py
Mac/Demo/waste/swed.py
+2
-1
FrameWork.py
Mac/Lib/FrameWork.py
+3
-2
buildtools.py
Mac/Lib/buildtools.py
+1
-1
Menus.py
Mac/Lib/lib-toolbox/Menus.py
+1
-1
MiniAEFrame.py
Mac/Lib/lib-toolbox/MiniAEFrame.py
+3
-2
QuickDraw.py
Mac/Lib/lib-toolbox/QuickDraw.py
+2
-2
AEservertest.py
Mac/Lib/test/AEservertest.py
+0
-4
echo.py
Mac/Lib/test/echo.py
+0
-4
No files found.
Mac/Demo/waste/htmled.py
Dosyayı görüntüle @
01a2d9e2
...
...
@@ -14,6 +14,7 @@ import WASTEconst
import
Scrap
import
os
import
macfs
import
MACFS
import
regsub
import
string
import
htmllib
...
...
@@ -243,7 +244,7 @@ class WasteWindow(ScrolledWindow):
try
:
rf
=
Res
.
FSpOpenResFile
(
self
.
path
,
3
)
except
Res
.
Error
:
Res
.
CreateResFile
(
self
.
path
)
Res
.
FSpCreateResFile
(
self
.
path
,
'????'
,
'TEXT'
,
MACFS
.
smAllScripts
)
rf
=
Res
.
FSpOpenResFile
(
self
.
path
,
3
)
styles
=
Res
.
Resource
(
''
)
soup
=
Res
.
Resource
(
''
)
...
...
Mac/Demo/waste/swed.py
Dosyayı görüntüle @
01a2d9e2
...
...
@@ -14,6 +14,7 @@ import WASTEconst
import
Scrap
import
os
import
macfs
import
MACFS
UNDOLABELS
=
[
# Indexed by WEGetUndoInfo() value
None
,
""
,
"typing"
,
"Cut"
,
"Paste"
,
"Clear"
,
"Drag"
,
"Style"
]
...
...
@@ -212,7 +213,7 @@ class WasteWindow(ScrolledWindow):
try
:
rf
=
Res
.
FSpOpenResFile
(
self
.
path
,
3
)
except
Res
.
Error
:
Res
.
CreateResFile
(
self
.
path
)
Res
.
FSpCreateResFile
(
self
.
path
,
'????'
,
'TEXT'
,
MACFS
.
smAllScripts
)
rf
=
Res
.
FSpOpenResFile
(
self
.
path
,
3
)
styles
=
Res
.
Resource
(
''
)
soup
=
Res
.
Resource
(
''
)
...
...
Mac/Lib/FrameWork.py
Dosyayı görüntüle @
01a2d9e2
...
...
@@ -674,12 +674,13 @@ class AppleMenu(Menu):
Menu
.
__init__
(
self
,
bar
,
"
\024
"
)
self
.
additem
(
abouttext
,
None
,
aboutcallback
)
self
.
addseparator
()
self
.
menu
.
AppendResMenu
(
'DRVR'
)
if
MacOS
.
runtimemodel
==
'ppc'
:
self
.
menu
.
AppendResMenu
(
'DRVR'
)
def
dispatch
(
self
,
id
,
item
,
window
,
event
):
if
item
==
1
:
Menu
.
dispatch
(
self
,
id
,
item
,
window
,
event
)
el
se
:
el
if
MacOS
.
runtimemodel
==
'ppc'
:
name
=
self
.
menu
.
GetMenuItemText
(
item
)
OpenDeskAcc
(
name
)
...
...
Mac/Lib/buildtools.py
Dosyayı görüntüle @
01a2d9e2
...
...
@@ -140,7 +140,7 @@ def process_common(template, progress, code, rsrcname, destname, is_update, copy
try
:
output
=
Res
.
FSpOpenResFile
(
dest_fss
,
WRITE
)
except
MacOS
.
Error
:
Res
.
CreateResFile
(
destname
)
Res
.
FSpCreateResFile
(
destname
,
'????'
,
'APPL'
,
MACFS
.
smAllScripts
)
output
=
Res
.
FSpOpenResFile
(
dest_fss
,
WRITE
)
# Copy the resources from the target specific resource template, if any
...
...
Mac/Lib/lib-toolbox/Menus.py
Dosyayı görüntüle @
01a2d9e2
# Generated from
'Macintosh HD:SWDev:Metrowerks Codewarrior 6.0:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Menus.h'
# Generated from
"Sap:Programma's:Metrowerks CodeWarrior 6.0:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Menus.h"
def
FOUR_CHAR_CODE
(
x
):
return
x
noMark
=
0
...
...
Mac/Lib/lib-toolbox/MiniAEFrame.py
Dosyayı görüntüle @
01a2d9e2
...
...
@@ -36,7 +36,8 @@ class MiniApplication:
Menu
.
ClearMenuBar
()
self
.
applemenu
=
applemenu
=
Menu
.
NewMenu
(
self
.
appleid
,
"
\024
"
)
applemenu
.
AppendMenu
(
"
%
s;(-"
%
self
.
getaboutmenutext
())
applemenu
.
AppendResMenu
(
'DRVR'
)
if
MacOS
.
runtimemodel
==
'ppc'
:
applemenu
.
AppendResMenu
(
'DRVR'
)
applemenu
.
InsertMenu
(
0
)
self
.
quitmenu
=
Menu
.
NewMenu
(
self
.
quitid
,
"File"
)
self
.
quitmenu
.
AppendMenu
(
"Quit"
)
...
...
@@ -93,7 +94,7 @@ class MiniApplication:
if
id
==
self
.
appleid
:
if
item
==
1
:
EasyDialogs
.
Message
(
self
.
getabouttext
())
elif
item
>
1
:
elif
item
>
1
and
hasattr
(
Menu
,
'OpenDeskAcc'
)
:
name
=
self
.
applemenu
.
GetMenuItemText
(
item
)
Menu
.
OpenDeskAcc
(
name
)
elif
id
==
self
.
quitid
and
item
==
1
:
...
...
Mac/Lib/lib-toolbox/QuickDraw.py
Dosyayı görüntüle @
01a2d9e2
# Generated from
'Macintosh HD:SWDev:Metrowerks Codewarrior 6.0:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:QuickDraw.h'
# Generated from
"Sap:Programma's:Metrowerks CodeWarrior 6.0:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:QuickDraw.h"
def
FOUR_CHAR_CODE
(
x
):
return
x
...
...
@@ -173,7 +173,7 @@ kCursorComponentErase = 0x0007
kCursorComponentMove
=
0x0008
kCursorComponentAnimate
=
0x0009
kCursorComponentLastReserved
=
0x0050
# Generated from
'Macintosh HD:SWDev:Metrowerks Codewarrior 6.0:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:QuickDrawText.h'
# Generated from
"Sap:Programma's:Metrowerks CodeWarrior 6.0:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:QuickDrawText.h"
def
FOUR_CHAR_CODE
(
x
):
return
x
...
...
Mac/Lib/test/AEservertest.py
Dosyayı görüntüle @
01a2d9e2
...
...
@@ -75,7 +75,6 @@ class EchoServer:
Menu
.
ClearMenuBar
()
self
.
applemenu
=
applemenu
=
Menu
.
NewMenu
(
self
.
appleid
,
"
\024
"
)
applemenu
.
AppendMenu
(
"All about echo...;(-"
)
applemenu
.
AppendResMenu
(
'DRVR'
)
applemenu
.
InsertMenu
(
0
)
self
.
filemenu
=
Menu
.
NewMenu
(
self
.
fileid
,
'File'
)
...
...
@@ -146,9 +145,6 @@ class EchoServer:
if
id
==
self
.
appleid
:
if
item
==
1
:
mymessage
(
"Echo -- echo AppleEvents"
)
elif
item
>
1
:
name
=
self
.
applemenu
.
GetItem
(
item
)
Qd
.
OpenDeskAcc
(
name
)
elif
id
==
self
.
fileid
:
if
item
==
1
:
raise
Quit
...
...
Mac/Lib/test/echo.py
Dosyayı görüntüle @
01a2d9e2
...
...
@@ -56,7 +56,6 @@ class EchoServer:
Menu
.
ClearMenuBar
()
self
.
applemenu
=
applemenu
=
Menu
.
NewMenu
(
self
.
appleid
,
"
\024
"
)
applemenu
.
AppendMenu
(
"All about echo...;(-"
)
applemenu
.
AppendResMenu
(
'DRVR'
)
applemenu
.
InsertMenu
(
0
)
Menu
.
DrawMenuBar
()
...
...
@@ -105,9 +104,6 @@ class EchoServer:
if
id
==
self
.
appleid
:
if
item
==
1
:
mymessage
(
"Echo -- echo AppleEvents"
)
elif
item
>
1
:
name
=
self
.
applemenu
.
GetItem
(
item
)
Qd
.
OpenDeskAcc
(
name
)
elif
what
<>
autoKey
:
print
"Event:"
,
(
eventname
(
what
),
message
,
when
,
(
h
,
v
),
modifiers
)
## MacOS.HandleEvent(event)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment