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
01824bf5
Kaydet (Commit)
01824bf5
authored
Eyl 19, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #484994: Improve PanedWindow.
üst
8eb92a01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
Tix.py
Lib/lib-tk/Tix.py
+20
-4
No files found.
Lib/lib-tk/Tix.py
Dosyayı görüntüle @
01824bf5
...
...
@@ -1047,10 +1047,11 @@ class ListNoteBook(TixWidget):
choosing the name of the desired page in the hlist subwidget."""
def
__init__
(
self
,
master
,
cnf
=
{},
**
kw
):
TixWidget
.
__init__
(
self
,
master
,
'tixDirList'
,
[
'options'
],
cnf
,
kw
)
self
.
subwidget_list
[
'hlist'
]
=
_dummyHList
(
self
,
'hlist'
)
self
.
subwidget_list
[
'shlist'
]
=
_dummyScrolledHList
(
self
,
'vsb'
)
TixWidget
.
__init__
(
self
,
master
,
'tixListNoteBook'
,
[
'options'
],
cnf
,
kw
)
self
.
subwidget_list
[
'pane'
]
=
_dummyPanedWindow
(
self
,
'pane'
,
destroy_physically
=
0
)
self
.
subwidget_list
[
'hlist'
]
=
_dummyHList
(
self
,
'hlist'
)
self
.
subwidget_list
[
'shlist'
]
=
_dummyScrolledHList
(
self
,
'vsb'
)
def
add
(
self
,
name
,
cnf
=
{},
**
kw
):
apply
(
self
.
tk
.
call
,
...
...
@@ -1058,6 +1059,17 @@ class ListNoteBook(TixWidget):
self
.
subwidget_list
[
name
]
=
TixSubWidget
(
self
,
name
)
return
self
.
subwidget_list
[
name
]
def
page
(
self
,
name
):
return
self
.
subwidget
(
name
)
def
pages
(
self
):
# Can't call subwidgets_all directly because we don't want .nbframe
names
=
self
.
tk
.
split
(
self
.
tk
.
call
(
self
.
_w
,
'pages'
))
ret
=
[]
for
x
in
names
:
ret
.
append
(
self
.
subwidget
(
x
))
return
ret
def
raise_page
(
self
,
name
):
# raise is a python keyword
self
.
tk
.
call
(
self
.
_w
,
'raise'
,
name
)
...
...
@@ -1594,6 +1606,10 @@ class _dummyNoteBookFrame(NoteBookFrame, TixSubWidget):
def
__init__
(
self
,
master
,
name
,
destroy_physically
=
0
):
TixSubWidget
.
__init__
(
self
,
master
,
name
,
destroy_physically
)
class
_dummyPanedWindow
(
PanedWindow
,
TixSubWidget
):
def
__init__
(
self
,
master
,
name
,
destroy_physically
=
1
):
TixSubWidget
.
__init__
(
self
,
master
,
name
,
destroy_physically
)
########################
### Utility Routines ###
########################
...
...
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