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
ba5db205
Kaydet (Commit)
ba5db205
authored
May 09, 2003
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
also support cmd-. in the interactive window
üst
505c4c28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
PyConsole.py
Mac/Tools/IDE/PyConsole.py
+25
-1
No files found.
Mac/Tools/IDE/PyConsole.py
Dosyayı görüntüle @
ba5db205
...
@@ -78,12 +78,36 @@ class ConsoleTextWidget(W.EditText):
...
@@ -78,12 +78,36 @@ class ConsoleTextWidget(W.EditText):
text
=
string
.
join
(
string
.
split
(
text
,
"
\r
"
),
"
\n
"
)
text
=
string
.
join
(
string
.
split
(
text
,
"
\r
"
),
"
\n
"
)
if
hasattr
(
MacOS
,
'EnableAppswitch'
):
if
hasattr
(
MacOS
,
'EnableAppswitch'
):
saveyield
=
MacOS
.
EnableAppswitch
(
0
)
saveyield
=
MacOS
.
EnableAppswitch
(
0
)
self
.
pyinteractive
.
executeline
(
text
,
self
,
self
.
_namespace
)
self
.
_scriptDone
=
False
if
sys
.
platform
==
"darwin"
:
# see identical construct in PyEdit.py
from
threading
import
Thread
t
=
Thread
(
target
=
self
.
_userCancelledMonitor
,
name
=
"UserCancelledMonitor"
)
t
.
start
()
try
:
self
.
pyinteractive
.
executeline
(
text
,
self
,
self
.
_namespace
)
finally
:
self
.
_scriptDone
=
True
if
hasattr
(
MacOS
,
'EnableAppswitch'
):
if
hasattr
(
MacOS
,
'EnableAppswitch'
):
MacOS
.
EnableAppswitch
(
saveyield
)
MacOS
.
EnableAppswitch
(
saveyield
)
selstart
,
selend
=
self
.
getselection
()
selstart
,
selend
=
self
.
getselection
()
self
.
_inputstart
=
selstart
self
.
_inputstart
=
selstart
def
_userCancelledMonitor
(
self
):
# XXX duplicate code from PyEdit.py
import
time
,
os
from
signal
import
SIGINT
from
Carbon
import
Evt
while
not
self
.
_scriptDone
:
if
Evt
.
CheckEventQueueForUserCancel
():
# Send a SIGINT signal to ourselves.
# This gets delivered to the main thread,
# cancelling the running script.
os
.
kill
(
os
.
getpid
(),
SIGINT
)
break
time
.
sleep
(
0.25
)
def
domenu_save_as
(
self
,
*
args
):
def
domenu_save_as
(
self
,
*
args
):
filename
=
EasyDialogs
.
AskFileForSave
(
message
=
'Save console text as:'
,
filename
=
EasyDialogs
.
AskFileForSave
(
message
=
'Save console text as:'
,
savedFileName
=
'console.txt'
)
savedFileName
=
'console.txt'
)
...
...
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