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
d05e1813
Kaydet (Commit)
d05e1813
authored
Agu 02, 2002
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Slightly better error message in case of missing resources.
üst
d5f43594
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
EasyDialogs.py
Mac/Lib/EasyDialogs.py
+5
-5
No files found.
Mac/Lib/EasyDialogs.py
Dosyayı görüntüle @
d05e1813
...
...
@@ -50,7 +50,7 @@ def Message(msg, id=260, ok=None):
d
=
GetNewDialog
(
id
,
-
1
)
if
not
d
:
print
"
Can't get DLOG resource with id ="
,
id
print
"
EasyDialogs: Can't get DLOG resource with id ="
,
id
,
" (missing resource file?)"
return
h
=
d
.
GetDialogItemAsControl
(
2
)
SetDialogItemText
(
h
,
lf2cr
(
msg
))
...
...
@@ -81,7 +81,7 @@ def AskString(prompt, default = "", id=261, ok=None, cancel=None):
d
=
GetNewDialog
(
id
,
-
1
)
if
not
d
:
print
"
Can't get DLOG resource with id ="
,
id
print
"
EasyDialogs: Can't get DLOG resource with id ="
,
id
,
" (missing resource file?)"
return
h
=
d
.
GetDialogItemAsControl
(
3
)
SetDialogItemText
(
h
,
lf2cr
(
prompt
))
...
...
@@ -121,7 +121,7 @@ def AskPassword(prompt, default='', id=264, ok=None, cancel=None):
"""
d
=
GetNewDialog
(
id
,
-
1
)
if
not
d
:
print
"
Can't get DLOG resource with id ="
,
id
print
"
EasyDialogs: Can't get DLOG resource with id ="
,
id
,
" (missing resource file?)"
return
h
=
d
.
GetDialogItemAsControl
(
3
)
SetDialogItemText
(
h
,
lf2cr
(
prompt
))
...
...
@@ -163,7 +163,7 @@ def AskYesNoCancel(question, default = 0, yes=None, no=None, cancel=None, id=262
d
=
GetNewDialog
(
id
,
-
1
)
if
not
d
:
print
"
Can't get DLOG resource with id ="
,
id
print
"
EasyDialogs: Can't get DLOG resource with id ="
,
id
,
" (missing resource file?)"
return
# Button assignments:
# 1 = default (invisible)
...
...
@@ -393,7 +393,7 @@ def _selectoption(d, optionlist, idx):
def
GetArgv
(
optionlist
=
None
,
commandlist
=
None
,
addoldfile
=
1
,
addnewfile
=
1
,
addfolder
=
1
,
id
=
ARGV_ID
):
d
=
GetNewDialog
(
id
,
-
1
)
if
not
d
:
print
"
Can't get DLOG resource with id ="
,
id
print
"
EasyDialogs: Can't get DLOG resource with id ="
,
id
,
" (missing resource file?)"
return
# h = d.GetDialogItemAsControl(3)
# SetDialogItemText(h, lf2cr(prompt))
...
...
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