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
d6e8713f
Kaydet (Commit)
d6e8713f
authored
Mar 10, 1999
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add PathBrowser to File module
üst
a917af7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Bindings.py
Tools/idle/Bindings.py
+1
-0
EditorWindow.py
Tools/idle/EditorWindow.py
+7
-0
No files found.
Tools/idle/Bindings.py
Dosyayı görüntüle @
d6e8713f
...
...
@@ -16,6 +16,7 @@ menudefs = [
(
'_Open...'
,
'<<open-window-from-file>>'
),
(
'Open _module...'
,
'<<open-module>>'
),
(
'Class _browser'
,
'<<open-class-browser>>'
),
(
'_Path browser'
,
'<<open-path-browser>>'
),
(
'Python shell'
,
'<<open-python-shell>>'
),
None
,
(
'_Save'
,
'<<save-window>>'
),
...
...
Tools/idle/EditorWindow.py
Dosyayı görüntüle @
d6e8713f
...
...
@@ -19,6 +19,8 @@ import WindowList
#$ win <Alt-c>
#$ unix <Control-x><Control-b>
#$ event <<open-path-browser>>
#$ event <<close-window>>
#$ unix <Control-x><Control-0>
#$ unix <Control-x><Key-0>
...
...
@@ -118,6 +120,7 @@ class EditorWindow:
text
.
bind
(
"<<open-new-window>>"
,
self
.
flist
.
new_callback
)
text
.
bind
(
"<<close-all-windows>>"
,
self
.
flist
.
close_all_callback
)
text
.
bind
(
"<<open-class-browser>>"
,
self
.
open_class_browser
)
text
.
bind
(
"<<open-path-browser>>"
,
self
.
open_path_browser
)
vbar
[
'command'
]
=
text
.
yview
vbar
.
pack
(
side
=
RIGHT
,
fill
=
Y
)
...
...
@@ -312,6 +315,10 @@ class EditorWindow:
import
ClassBrowser
ClassBrowser
.
ClassBrowser
(
self
.
flist
,
base
,
[
head
])
self
.
text
[
"cursor"
]
=
save_cursor
def
open_path_browser
(
self
,
event
=
None
):
import
PathBrowser
PathBrowser
.
PathBrowser
(
self
.
flist
)
def
gotoline
(
self
,
lineno
):
if
lineno
is
not
None
and
lineno
>
0
:
...
...
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