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
7fb76e0f
Kaydet (Commit)
7fb76e0f
authored
Haz 12, 1997
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced MacOS.EnableAppswitch by MacOS.SchedParams
üst
caa7c46a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
AEservertest.py
Mac/Lib/test/AEservertest.py
+2
-2
ctbtest.py
Mac/Lib/test/ctbtest.py
+1
-1
echo.py
Mac/Lib/test/echo.py
+2
-2
tae.py
Mac/Lib/test/tae.py
+1
-1
No files found.
Mac/Lib/test/AEservertest.py
Dosyayı görüntüle @
7fb76e0f
...
@@ -42,14 +42,14 @@ def myaskstring(str, default=''):
...
@@ -42,14 +42,14 @@ def myaskstring(str, default=''):
def
main
():
def
main
():
echo
=
EchoServer
()
echo
=
EchoServer
()
yield
=
MacOS
.
EnableAppswitch
(
-
1
)
# Disable Python's own "event handling"
savepars
=
MacOS
.
SchedParams
(
0
,
0
)
# Disable Python's own "event handling"
try
:
try
:
try
:
try
:
echo
.
mainloop
(
everyEvent
,
0
)
echo
.
mainloop
(
everyEvent
,
0
)
except
Quit
:
except
Quit
:
pass
pass
finally
:
finally
:
MacOS
.
EnableAppswitch
(
yield
)
# Let Python have a go at events
apply
(
MacOS
.
SchedParams
,
savepars
)
# Let Python have a go at events
echo
.
close
()
echo
.
close
()
...
...
Mac/Lib/test/ctbtest.py
Dosyayı görüntüle @
7fb76e0f
...
@@ -16,7 +16,7 @@ def main():
...
@@ -16,7 +16,7 @@ def main():
print
'Communications Toolbox not available'
print
'Communications Toolbox not available'
sys
.
exit
(
1
)
sys
.
exit
(
1
)
# Disable Python's event processing (we do that)
# Disable Python's event processing (we do that)
MacOS
.
EnableAppswitch
(
0
)
MacOS
.
SchedParams
(
1
,
0
)
print
'Minimal terminal emulator V1.0'
print
'Minimal terminal emulator V1.0'
print
'(type command-Q to exit)'
print
'(type command-Q to exit)'
print
print
...
...
Mac/Lib/test/echo.py
Dosyayı görüntüle @
7fb76e0f
...
@@ -33,11 +33,11 @@ def mymessage(str):
...
@@ -33,11 +33,11 @@ def mymessage(str):
def
main
():
def
main
():
echo
=
EchoServer
()
echo
=
EchoServer
()
yield
=
MacOS
.
EnableAppswitch
(
-
1
)
# Disable Python's own "event handling"
saveparams
=
MacOS
.
SchedParams
(
0
,
0
)
# Disable Python's own "event handling"
try
:
try
:
echo
.
mainloop
(
everyEvent
,
0
)
echo
.
mainloop
(
everyEvent
,
0
)
finally
:
finally
:
MacOS
.
EnableAppswitch
(
yield
)
# Let Python have a go at events
apply
(
MacOS
.
SchedParams
,
saveparams
)
# Let Python have a go at events
echo
.
close
()
echo
.
close
()
...
...
Mac/Lib/test/tae.py
Dosyayı görüntüle @
7fb76e0f
...
@@ -11,7 +11,7 @@ import macfs
...
@@ -11,7 +11,7 @@ import macfs
import
sys
import
sys
import
MacOS
import
MacOS
MacOS
.
EnableAppswitch
(
0
)
MacOS
.
SchedParams
(
1
,
0
)
def
aehandler
(
request
,
reply
):
def
aehandler
(
request
,
reply
):
tosend
=
[]
tosend
=
[]
...
...
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