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
e5c9474f
Kaydet (Commit)
e5c9474f
authored
Mar 08, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Default waittime in the eventloop is now None. At low level it will then be set to GetCaretTime().
üst
53ebe562
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
FrameWork.py
Mac/Lib/FrameWork.py
+8
-5
Wapplication.py
Mac/Tools/IDE/Wapplication.py
+2
-2
No files found.
Mac/Lib/FrameWork.py
Dosyayı görüntüle @
e5c9474f
...
@@ -144,12 +144,11 @@ class Application:
...
@@ -144,12 +144,11 @@ class Application:
# event type.
# event type.
# Normally, however, you'd just define handlers for individual
# Normally, however, you'd just define handlers for individual
# events.
# events.
# (XXX I'm not sure if using default parameter values is the right
# way to define the mask and wait time passed to WaitNextEvent.)
schedparams
=
(
0
,
0
)
# By default disable Python's event handling
schedparams
=
(
0
,
0
)
# By default disable Python's event handling
default_wait
=
None
# By default we wait GetCaretTime in WaitNextEvent
def
mainloop
(
self
,
mask
=
everyEvent
,
wait
=
0
):
def
mainloop
(
self
,
mask
=
everyEvent
,
wait
=
None
):
self
.
quitting
=
0
self
.
quitting
=
0
saveparams
=
apply
(
MacOS
.
SchedParams
,
self
.
schedparams
)
saveparams
=
apply
(
MacOS
.
SchedParams
,
self
.
schedparams
)
try
:
try
:
...
@@ -169,7 +168,7 @@ class Application:
...
@@ -169,7 +168,7 @@ class Application:
while
self
.
do1event
(
mask
,
wait
=
0
):
while
self
.
do1event
(
mask
,
wait
=
0
):
pass
pass
def
do1event
(
self
,
mask
=
everyEvent
,
wait
=
0
):
def
do1event
(
self
,
mask
=
everyEvent
,
wait
=
None
):
ok
,
event
=
self
.
getevent
(
mask
,
wait
)
ok
,
event
=
self
.
getevent
(
mask
,
wait
)
if
IsDialogEvent
(
event
):
if
IsDialogEvent
(
event
):
if
self
.
do_dialogevent
(
event
):
if
self
.
do_dialogevent
(
event
):
...
@@ -182,10 +181,14 @@ class Application:
...
@@ -182,10 +181,14 @@ class Application:
def
idle
(
self
,
event
):
def
idle
(
self
,
event
):
pass
pass
def
getevent
(
self
,
mask
=
everyEvent
,
wait
=
0
):
def
getevent
(
self
,
mask
=
everyEvent
,
wait
=
None
):
if
self
.
needmenubarredraw
:
if
self
.
needmenubarredraw
:
DrawMenuBar
()
DrawMenuBar
()
self
.
needmenubarredraw
=
0
self
.
needmenubarredraw
=
0
if
wait
is
None
:
wait
=
self
.
default_wait
if
wait
is
None
:
wait
=
GetCaretTime
()
ok
,
event
=
WaitNextEvent
(
mask
,
wait
)
ok
,
event
=
WaitNextEvent
(
mask
,
wait
)
return
ok
,
event
return
ok
,
event
...
...
Mac/Tools/IDE/Wapplication.py
Dosyayı görüntüle @
e5c9474f
...
@@ -24,7 +24,7 @@ class Application(FrameWork.Application):
...
@@ -24,7 +24,7 @@ class Application(FrameWork.Application):
# map certain F key codes to equivalent command-letter combos (JJS)
# map certain F key codes to equivalent command-letter combos (JJS)
self
.
fkeymaps
=
{
122
:
"z"
,
120
:
"x"
,
99
:
"c"
,
118
:
"v"
}
self
.
fkeymaps
=
{
122
:
"z"
,
120
:
"x"
,
99
:
"c"
,
118
:
"v"
}
def
mainloop
(
self
,
mask
=
FrameWork
.
everyEvent
,
wait
=
0
):
def
mainloop
(
self
,
mask
=
FrameWork
.
everyEvent
,
wait
=
None
):
import
W
import
W
self
.
quitting
=
0
self
.
quitting
=
0
saveyield
=
MacOS
.
EnableAppswitch
(
-
1
)
saveyield
=
MacOS
.
EnableAppswitch
(
-
1
)
...
@@ -44,7 +44,7 @@ class Application(FrameWork.Application):
...
@@ -44,7 +44,7 @@ class Application(FrameWork.Application):
finally
:
finally
:
MacOS
.
EnableAppswitch
(
1
)
MacOS
.
EnableAppswitch
(
1
)
def
debugger_mainloop
(
self
,
mask
=
FrameWork
.
everyEvent
,
wait
=
0
):
def
debugger_mainloop
(
self
,
mask
=
FrameWork
.
everyEvent
,
wait
=
None
):
import
W
import
W
self
.
debugger_quitting
=
0
self
.
debugger_quitting
=
0
saveyield
=
MacOS
.
EnableAppswitch
(
-
1
)
saveyield
=
MacOS
.
EnableAppswitch
(
-
1
)
...
...
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