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
cdcc0f0c
Kaydet (Commit)
cdcc0f0c
authored
Şub 15, 1999
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
AskPassword(): added reference to the module doc string; added support for autoKey events. --jvr
üst
3b805268
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
EasyDialogs.py
Mac/Lib/EasyDialogs.py
+3
-2
No files found.
Mac/Lib/EasyDialogs.py
Dosyayı görüntüle @
cdcc0f0c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
Message(msg) -- display a message and an OK button.
Message(msg) -- display a message and an OK button.
AskString(prompt, default) -- ask for a string, display OK and Cancel buttons.
AskString(prompt, default) -- ask for a string, display OK and Cancel buttons.
AskPassword(prompt, default) -- like AskString(), but shows text as bullets.
AskYesNoCancel(question, default) -- display a question and Yes, No and Cancel buttons.
AskYesNoCancel(question, default) -- display a question and Yes, No and Cancel buttons.
bar = Progress(label, maxvalue) -- Display a progress bar
bar = Progress(label, maxvalue) -- Display a progress bar
bar.set(value) -- Set value
bar.set(value) -- Set value
...
@@ -116,12 +117,12 @@ def AskPassword(prompt, default='', id=257):
...
@@ -116,12 +117,12 @@ def AskPassword(prompt, default='', id=257):
string
=
default
string
=
default
oldschedparams
=
MacOS
.
SchedParams
(
0
,
0
)
oldschedparams
=
MacOS
.
SchedParams
(
0
,
0
)
while
1
:
while
1
:
ready
,
ev
=
Evt
.
WaitNextEvent
(
-
1
,
6
)
ready
,
ev
=
Evt
.
WaitNextEvent
(
Events
.
everyEvent
,
6
)
if
not
ready
:
continue
if
not
ready
:
continue
what
,
msg
,
when
,
where
,
mod
=
ev
what
,
msg
,
when
,
where
,
mod
=
ev
if
what
==
0
:
Dlg
.
DialogSelect
(
ev
)
# for blinking caret
if
what
==
0
:
Dlg
.
DialogSelect
(
ev
)
# for blinking caret
elif
Dlg
.
IsDialogEvent
(
ev
):
elif
Dlg
.
IsDialogEvent
(
ev
):
if
what
==
Events
.
keyDown
:
if
what
in
(
Events
.
keyDown
,
Events
.
autoKey
)
:
charcode
=
msg
&
Events
.
charCodeMask
charcode
=
msg
&
Events
.
charCodeMask
if
(
mod
&
Events
.
cmdKey
):
if
(
mod
&
Events
.
cmdKey
):
MacOS
.
SysBeep
()
MacOS
.
SysBeep
()
...
...
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