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
d44a3ec6
Kaydet (Commit)
d44a3ec6
authored
Ock 22, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Getting rid of StandardGetFile
üst
96bf0d75
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
17 deletions
+13
-17
BuildApplet.py
Mac/scripts/BuildApplet.py
+6
-6
BuildApplication.py
Mac/scripts/BuildApplication.py
+5
-6
MkDistr_ui.py
Mac/scripts/MkDistr_ui.py
+2
-5
No files found.
Mac/scripts/BuildApplet.py
Dosyayı görüntüle @
d44a3ec6
...
...
@@ -35,18 +35,18 @@ def buildapplet():
# Ask for source text if not specified in sys.argv[1:]
if
not
sys
.
argv
[
1
:]:
srcfss
,
ok
=
macfs
.
PromptGetFile
(
'Select Python source or applet:'
,
'TEXT'
,
'APPL'
)
if
not
ok
:
filename
=
EasyDialogs
.
AskFileForOpen
(
message
=
'Select Python source or applet:'
,
fileTypes
=
(
'TEXT'
,
'APPL'
))
if
not
filename
:
return
filename
=
srcfss
.
as_pathname
()
tp
,
tf
=
os
.
path
.
split
(
filename
)
if
tf
[
-
3
:]
==
'.py'
:
tf
=
tf
[:
-
3
]
else
:
tf
=
tf
+
'.applet'
dstf
ss
,
ok
=
macfs
.
StandardPutFile
(
'Save application as:'
,
tf
)
if
not
ok
:
return
dstfilename
=
dstfss
.
as_pathname
()
dstf
ilename
=
EasyDialogs
.
AskFileForSave
(
message
=
'Save application as:'
,
savedFileName
=
tf
)
if
not
dstfilename
:
return
cr
,
tp
=
MacOS
.
GetCreatorAndType
(
filename
)
if
tp
==
'APPL'
:
buildtools
.
update
(
template
,
filename
,
dstfilename
)
...
...
Mac/scripts/BuildApplication.py
Dosyayı görüntüle @
d44a3ec6
...
...
@@ -12,7 +12,6 @@ import sys
import
string
import
os
import
macfs
import
MacOS
from
Carbon
import
Res
from
Carbon
import
Dlg
...
...
@@ -54,10 +53,10 @@ def buildapplication(debug = 0):
# Ask for source text if not specified in sys.argv[1:]
if
not
sys
.
argv
[
1
:]:
srcfss
,
ok
=
macfs
.
PromptGetFile
(
'Select Python source:'
,
'TEXT'
)
if
not
ok
:
filename
=
EasyDialogs
.
AskFileForOpen
(
message
=
'Select Python source:'
,
fileTypes
=
(
'TEXT'
,))
if
not
filename
:
return
filename
=
srcfss
.
as_pathname
()
else
:
if
sys
.
argv
[
2
:]:
raise
buildtools
.
BuildError
,
"please select one file at a time"
...
...
@@ -73,10 +72,10 @@ def buildapplication(debug = 0):
else
:
tf
=
tf
+
'.app'
dstfss
,
ok
=
macfs
.
StandardPutFile
(
'Save application as:'
,
tf
)
dstfilename
=
EasyDialogs
.
AskFileForSate
(
message
=
'Save application as:'
,
savedFileName
=
tf
)
if
not
ok
:
return
dstfilename
=
dstfss
.
as_pathname
()
macgen_bin
.
generate
(
filename
,
dstfilename
,
None
,
architecture
,
1
)
...
...
Mac/scripts/MkDistr_ui.py
Dosyayı görüntüle @
d44a3ec6
...
...
@@ -20,7 +20,6 @@ from Carbon import Win
from
Carbon
import
Qd
from
FrameWork
import
*
import
EasyDialogs
import
macfs
import
os
import
sys
import
macresource
...
...
@@ -304,11 +303,9 @@ def GetType():
if
rv
==
DTYPE_CANCEL
:
sys
.
exit
(
0
)
if
rv
==
DTYPE_EXIST
:
## macfs.SetFolder(':(MkDistr)')
fss
,
ok
=
macfs
.
StandardGetFile
(
'TEXT'
)
if
not
ok
:
path
=
EasyDialogs
.
AskFileForOpen
()
if
not
path
:
sys
.
exit
(
0
)
path
=
fss
.
as_pathname
()
basename
=
os
.
path
.
split
(
path
)[
-
1
]
if
basename
[
-
8
:]
<>
'.include'
:
EasyDialogs
.
Message
(
'That is not a distribution include file'
)
...
...
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