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
08a7a0d6
Kaydet (Commit)
08a7a0d6
authored
Ock 21, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use new file dialogs in GetArgv()
üst
f2c84d0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
EasyDialogs.py
Lib/plat-mac/EasyDialogs.py
+10
-11
No files found.
Lib/plat-mac/EasyDialogs.py
Dosyayı görüntüle @
08a7a0d6
...
...
@@ -28,7 +28,6 @@ import MacOS
import
string
from
Carbon.ControlAccessor
import
*
# Also import Controls constants
import
Carbon.File
import
macfs
import
macresource
import
os
...
...
@@ -494,17 +493,17 @@ def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfo
else
:
MacOS
.
SysBeep
()
elif
n
==
ARGV_ADD_OLDFILE
:
fss
,
ok
=
macfs
.
StandardGetFile
()
if
ok
:
stringstoadd
=
[
fss
.
as_pathname
()
]
pathname
=
AskFileForOpen
()
if
pathname
:
stringstoadd
=
[
pathname
]
elif
n
==
ARGV_ADD_NEWFILE
:
fss
,
ok
=
macfs
.
StandardPutFile
(
''
)
if
ok
:
stringstoadd
=
[
fss
.
as_pathname
()
]
pathname
=
AskFileForSave
(
)
if
pathname
:
stringstoadd
=
[
pathname
]
elif
n
==
ARGV_ADD_FOLDER
:
fss
,
ok
=
macfs
.
GetDirectory
()
if
ok
:
stringstoadd
=
[
fss
.
as_pathname
()
]
pathname
=
AskFolder
()
if
pathname
:
stringstoadd
=
[
pathname
]
elif
n
==
ARGV_CMDLINE_DATA
:
pass
# Nothing to do
else
:
...
...
@@ -694,7 +693,7 @@ def AskFolder(**args):
def
test
():
import
time
,
sys
import
time
,
sys
,
macfs
Message
(
"Testing EasyDialogs."
)
optionlist
=
((
'v'
,
'Verbose'
),
(
'verbose'
,
'Verbose as long option'
),
...
...
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