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
0bb0a90b
Kaydet (Commit)
0bb0a90b
authored
Eyl 21, 2000
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Various tweaks and bugfixes to GetArgv. It now appears good enough for Distutils.
üst
00fb4160
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
EasyDialogs.py
Mac/Lib/EasyDialogs.py
+10
-10
No files found.
Mac/Lib/EasyDialogs.py
Dosyayı görüntüle @
0bb0a90b
...
...
@@ -389,7 +389,7 @@ def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfo
d
.
GetDialogItemAsControl
(
ARGV_OPTION_GROUP
)
.
DeactivateControl
()
if
commandlist
:
_setmenu
(
d
.
GetDialogItemAsControl
(
ARGV_COMMAND_GROUP
),
commandlist
)
if
type
(
commandlist
)
==
type
(())
and
len
(
commandlist
[
0
])
>
1
:
if
type
(
commandlist
[
0
]
)
==
type
(())
and
len
(
commandlist
[
0
])
>
1
:
help
=
commandlist
[
0
][
-
1
]
h
=
d
.
GetDialogItemAsControl
(
ARGV_COMMAND_EXPLAIN
)
Dlg
.
SetDialogItemText
(
h
,
help
)
...
...
@@ -422,10 +422,9 @@ def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfo
elif
n
==
ARGV_OPTION_ADD
:
idx
=
d
.
GetDialogItemAsControl
(
ARGV_OPTION_GROUP
)
.
GetControlValue
()
-
1
if
0
<=
idx
<
len
(
optionlist
):
if
type
(
optionlist
)
==
type
(()):
option
=
optionlist
[
idx
][
0
]
else
:
option
=
optionlist
[
idx
]
option
=
optionlist
[
idx
]
if
type
(
option
)
==
type
(()):
option
=
option
[
0
]
if
option
[
-
1
]
==
'='
or
option
[
-
1
]
==
':'
:
option
=
option
[:
-
1
]
h
=
d
.
GetDialogItemAsControl
(
ARGV_OPTION_VALUE
)
...
...
@@ -443,7 +442,7 @@ def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfo
MacOS
.
SysBeep
()
elif
n
==
ARGV_COMMAND_GROUP
:
idx
=
d
.
GetDialogItemAsControl
(
ARGV_COMMAND_GROUP
)
.
GetControlValue
()
-
1
if
0
<=
idx
<
len
(
commandlist
)
and
type
(
commandlist
)
==
type
(())
and
\
if
0
<=
idx
<
len
(
commandlist
)
and
type
(
commandlist
[
idx
]
)
==
type
(())
and
\
len
(
commandlist
[
idx
])
>
1
:
help
=
commandlist
[
idx
][
-
1
]
h
=
d
.
GetDialogItemAsControl
(
ARGV_COMMAND_EXPLAIN
)
...
...
@@ -451,10 +450,10 @@ def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfo
elif
n
==
ARGV_COMMAND_ADD
:
idx
=
d
.
GetDialogItemAsControl
(
ARGV_COMMAND_GROUP
)
.
GetControlValue
()
-
1
if
0
<=
idx
<
len
(
commandlist
):
if
type
(
commandlist
)
==
type
(()):
stringstoadd
=
[
commandlist
[
idx
][
0
]]
else
:
stringstoadd
=
[
commandlist
[
idx
]
]
command
=
commandlist
[
idx
]
if
type
(
command
)
==
type
(()):
command
=
command
[
0
]
stringstoadd
=
[
command
]
else
:
MacOS
.
SysBeep
()
elif
n
==
ARGV_ADD_OLDFILE
:
...
...
@@ -511,6 +510,7 @@ def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfo
return
newlist
finally
:
apply
(
MacOS
.
SchedParams
,
appsw
)
del
d
def
test
():
import
time
,
sys
...
...
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