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
bd36d6ec
Kaydet (Commit)
bd36d6ec
authored
Eki 02, 1998
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added the ListViewer
üst
a9053f65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
PyncheWidget.py
Tools/pynche/PyncheWidget.py
+11
-0
No files found.
Tools/pynche/PyncheWidget.py
Dosyayı görüntüle @
bd36d6ec
...
@@ -15,6 +15,7 @@ class PyncheWidget:
...
@@ -15,6 +15,7 @@ class PyncheWidget:
self
.
__sb
=
switchboard
self
.
__sb
=
switchboard
self
.
__version
=
version
self
.
__version
=
version
self
.
__textwin
=
None
self
.
__textwin
=
None
self
.
__listwin
=
None
# create the first and top window
# create the first and top window
root
=
self
.
__root
=
Tk
(
className
=
'Pynche'
)
root
=
self
.
__root
=
Tk
(
className
=
'Pynche'
)
root
.
protocol
(
'WM_DELETE_WINDOW'
,
self
.
__quit
)
root
.
protocol
(
'WM_DELETE_WINDOW'
,
self
.
__quit
)
...
@@ -51,6 +52,9 @@ class PyncheWidget:
...
@@ -51,6 +52,9 @@ class PyncheWidget:
viewmenu
.
add_command
(
label
=
'Text Window...'
,
viewmenu
.
add_command
(
label
=
'Text Window...'
,
command
=
self
.
__popup_text
,
command
=
self
.
__popup_text
,
underline
=
0
)
underline
=
0
)
viewmenu
.
add_command
(
label
=
'Color List Window...'
,
command
=
self
.
__popup_listwin
,
underline
=
0
)
#
#
# Help menu
# Help menu
#
#
...
@@ -98,3 +102,10 @@ email: bwarsaw@python.org''')
...
@@ -98,3 +102,10 @@ email: bwarsaw@python.org''')
self
.
__textwin
=
TextViewer
(
self
.
__sb
,
self
.
__root
)
self
.
__textwin
=
TextViewer
(
self
.
__sb
,
self
.
__root
)
self
.
__sb
.
add_view
(
self
.
__textwin
)
self
.
__sb
.
add_view
(
self
.
__textwin
)
self
.
__textwin
.
deiconify
()
self
.
__textwin
.
deiconify
()
def
__popup_listwin
(
self
,
event
=
None
):
if
not
self
.
__listwin
:
from
ListViewer
import
ListViewer
self
.
__listwin
=
ListViewer
(
self
.
__sb
,
self
.
__root
)
self
.
__sb
.
add_view
(
self
.
__listwin
)
self
.
__listwin
.
deiconify
()
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