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
4ea570d9
Kaydet (Commit)
4ea570d9
authored
Mar 30, 1992
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapt it to modern times (0.9.6)
üst
9cf8f337
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
python.py
Demo/stdwin/python.py
+2
-13
No files found.
Demo/stdwin/python.py
Dosyayı görüntüle @
4ea570d9
#! /usr/local/python
XXX
This
file
needs
some
work
for
Python
0.9
.
6
!!!
# A STDWIN-based front end for the Python interpreter.
#
# This is useful if you want to avoid console I/O and instead
...
...
@@ -29,15 +27,7 @@ import stdwin
from
stdwinevents
import
*
import
rand
import
mainloop
from
util
import
readfile
# 0.9.1
try
:
import
mac
os
=
mac
except
NameError
:
import
posix
os
=
posix
import
os
# Filename used to capture output from commands; change to suit your taste
...
...
@@ -213,8 +203,7 @@ def do_open(win):
filename
=
stdwin
.
askfile
(
'Open file'
,
''
,
0
)
win
=
makewindow
()
win
.
filename
=
filename
win
.
editor
.
replace
(
readfile
(
filename
))
# 0.9.1
# win.editor.replace(open(filename, 'r').read()) # 0.9.2
win
.
editor
.
replace
(
open
(
filename
,
'r'
)
.
read
())
win
.
editor
.
setfocus
(
0
,
0
)
win
.
settitle
(
win
.
filename
)
#
...
...
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