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
5bd2cd66
Kaydet (Commit)
5bd2cd66
authored
Agu 09, 2000
tarafından
Fredrik Lundh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-- added xview_moveto, xview_scroll, yview_moveto, yview_scroll
to the Text method (closes Bug #110605)
üst
06d28153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
Tkinter.py
Lib/lib-tk/Tkinter.py
+19
-3
No files found.
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
5bd2cd66
...
...
@@ -2830,11 +2830,27 @@ class Text(Widget):
if
not
what
:
return
self
.
_getdoubles
(
self
.
tk
.
call
(
self
.
_w
,
'xview'
))
self
.
tk
.
call
((
self
.
_w
,
'xview'
)
+
what
)
def
yview
(
self
,
*
what
):
def
xview_moveto
(
self
,
fraction
):
"""Adjusts the view in the window so that FRACTION of the
total width of the canvas is off-screen to the left."""
self
.
tk
.
call
(
self
.
_w
,
'xview'
,
'moveto'
,
fraction
)
def
xview_scroll
(
self
,
number
,
what
):
"""Shift the x-view according to NUMBER which is measured
in "units" or "pages" (WHAT)."""
self
.
tk
.
call
(
self
.
_w
,
'xview'
,
'scroll'
,
number
,
what
)
def
yview
(
self
,
*
args
):
"""Query and change vertical position of the view."""
if
not
what
:
if
not
args
:
return
self
.
_getdoubles
(
self
.
tk
.
call
(
self
.
_w
,
'yview'
))
self
.
tk
.
call
((
self
.
_w
,
'yview'
)
+
what
)
self
.
tk
.
call
((
self
.
_w
,
'yview'
)
+
args
)
def
yview_moveto
(
self
,
fraction
):
"""Adjusts the view in the window so that FRACTION of the
total height of the canvas is off-screen to the top."""
self
.
tk
.
call
(
self
.
_w
,
'yview'
,
'moveto'
,
fraction
)
def
yview_scroll
(
self
,
number
,
what
):
"""Shift the y-view according to NUMBER which is measured
in "units" or "pages" (WHAT)."""
self
.
tk
.
call
(
self
.
_w
,
'yview'
,
'scroll'
,
number
,
what
)
def
yview_pickplace
(
self
,
*
what
):
"""Obsolete function, use see."""
self
.
tk
.
call
((
self
.
_w
,
'yview'
,
'-pickplace'
)
+
what
)
...
...
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