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
e931ed59
Kaydet (Commit)
e931ed59
authored
Ock 10, 2003
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto
Add the optional gain parameter and pass it to Tk.
üst
faa7b9bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Tkinter.py
Lib/lib-tk/Tkinter.py
+3
-3
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
e931ed59
...
...
@@ -2139,11 +2139,11 @@ class Canvas(Widget):
def
scan_mark
(
self
,
x
,
y
):
"""Remember the current X, Y coordinates."""
self
.
tk
.
call
(
self
.
_w
,
'scan'
,
'mark'
,
x
,
y
)
def
scan_dragto
(
self
,
x
,
y
):
"""Adjust the view of the canvas to
10
times the
def
scan_dragto
(
self
,
x
,
y
,
gain
=
10
):
"""Adjust the view of the canvas to
GAIN
times the
difference between X and Y and the coordinates given in
scan_mark."""
self
.
tk
.
call
(
self
.
_w
,
'scan'
,
'dragto'
,
x
,
y
)
self
.
tk
.
call
(
self
.
_w
,
'scan'
,
'dragto'
,
x
,
y
,
gain
)
def
select_adjust
(
self
,
tagOrId
,
index
):
"""Adjust the end of the selection near the cursor of an item TAGORID to index."""
self
.
tk
.
call
(
self
.
_w
,
'select'
,
'adjust'
,
tagOrId
,
index
)
...
...
Misc/NEWS
Dosyayı görüntüle @
e931ed59
...
...
@@ -88,6 +88,9 @@ Library
- urlparse can now parse imap:// URLs. See SF feature request #618024.
- Tkinter.Canvas.scan_dragto() provides an optional parameter to support
the gain value which is passed to Tk. SF bug# 602259.
Tools/Demos
-----------
...
...
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