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
7548bce0
Kaydet (Commit)
7548bce0
authored
Mar 25, 2011
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
<Home> toggle failing on Tk 8.5, causing IDLE exits. Issue 3851.
üst
4664563f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
EditorWindow.py
Lib/idlelib/EditorWindow.py
+9
-12
NEWS.txt
Lib/idlelib/NEWS.txt
+4
-1
No files found.
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
7548bce0
...
@@ -310,10 +310,10 @@ class EditorWindow(object):
...
@@ -310,10 +310,10 @@ class EditorWindow(object):
if
(
event
.
state
&
4
)
!=
0
and
event
.
keysym
==
"Home"
:
if
(
event
.
state
&
4
)
!=
0
and
event
.
keysym
==
"Home"
:
# state&4==Control. If <Control-Home>, use the Tk binding.
# state&4==Control. If <Control-Home>, use the Tk binding.
return
return
if
self
.
text
.
index
(
"iomark"
)
and
\
if
self
.
text
.
index
(
"iomark"
)
and
\
self
.
text
.
compare
(
"iomark"
,
"<="
,
"insert lineend"
)
and
\
self
.
text
.
compare
(
"iomark"
,
"<="
,
"insert lineend"
)
and
\
self
.
text
.
compare
(
"insert linestart"
,
"<="
,
"iomark"
):
self
.
text
.
compare
(
"insert linestart"
,
"<="
,
"iomark"
):
# In Shell on input line, go to just after prompt
insertpt
=
int
(
self
.
text
.
index
(
"iomark"
)
.
split
(
"."
)[
1
])
insertpt
=
int
(
self
.
text
.
index
(
"iomark"
)
.
split
(
"."
)[
1
])
else
:
else
:
line
=
self
.
text
.
get
(
"insert linestart"
,
"insert lineend"
)
line
=
self
.
text
.
get
(
"insert linestart"
,
"insert lineend"
)
...
@@ -322,30 +322,27 @@ class EditorWindow(object):
...
@@ -322,30 +322,27 @@ class EditorWindow(object):
break
break
else
:
else
:
insertpt
=
len
(
line
)
insertpt
=
len
(
line
)
lineat
=
int
(
self
.
text
.
index
(
"insert"
)
.
split
(
'.'
)[
1
])
lineat
=
int
(
self
.
text
.
index
(
"insert"
)
.
split
(
'.'
)[
1
])
if
insertpt
==
lineat
:
if
insertpt
==
lineat
:
insertpt
=
0
insertpt
=
0
dest
=
"insert linestart+"
+
str
(
insertpt
)
+
"c"
dest
=
"insert linestart+"
+
str
(
insertpt
)
+
"c"
if
(
event
.
state
&
1
)
==
0
:
if
(
event
.
state
&
1
)
==
0
:
# shift not pressed
# shift
was
not pressed
self
.
text
.
tag_remove
(
"sel"
,
"1.0"
,
"end"
)
self
.
text
.
tag_remove
(
"sel"
,
"1.0"
,
"end"
)
else
:
else
:
if
not
self
.
text
.
index
(
"sel.first"
):
if
not
self
.
text
.
index
(
"sel.first"
):
self
.
text
.
mark_set
(
"anchor"
,
"insert"
)
self
.
text
.
mark_set
(
"my_anchor"
,
"insert"
)
# there was no previous selection
else
:
if
self
.
text
.
compare
(
self
.
text
.
index
(
"sel.first"
),
"<"
,
self
.
text
.
index
(
"insert"
)):
self
.
text
.
mark_set
(
"my_anchor"
,
"sel.first"
)
# extend back
else
:
self
.
text
.
mark_set
(
"my_anchor"
,
"sel.last"
)
# extend forward
first
=
self
.
text
.
index
(
dest
)
first
=
self
.
text
.
index
(
dest
)
last
=
self
.
text
.
index
(
"anchor"
)
last
=
self
.
text
.
index
(
"my_anchor"
)
if
self
.
text
.
compare
(
first
,
">"
,
last
):
if
self
.
text
.
compare
(
first
,
">"
,
last
):
first
,
last
=
last
,
first
first
,
last
=
last
,
first
self
.
text
.
tag_remove
(
"sel"
,
"1.0"
,
"end"
)
self
.
text
.
tag_remove
(
"sel"
,
"1.0"
,
"end"
)
self
.
text
.
tag_add
(
"sel"
,
first
,
last
)
self
.
text
.
tag_add
(
"sel"
,
first
,
last
)
self
.
text
.
mark_set
(
"insert"
,
dest
)
self
.
text
.
mark_set
(
"insert"
,
dest
)
self
.
text
.
see
(
"insert"
)
self
.
text
.
see
(
"insert"
)
return
"break"
return
"break"
...
...
Lib/idlelib/NEWS.txt
Dosyayı görüntüle @
7548bce0
...
@@ -3,7 +3,10 @@ What's New in IDLE 2.7.2?
...
@@ -3,7 +3,10 @@ What's New in IDLE 2.7.2?
*Release date: XX-XX-XXXX*
*Release date: XX-XX-XXXX*
- <Home> toggle non-functional when NumLock set on Windows. Issue3851.
- <Home> toggle failing on Tk 8.5, causing IDLE exits and strange selection
behavior. Issue 4676. Improve selection extension behaviour.
- <Home> toggle non-functional when NumLock set on Windows. Issue 3851.
What's New in IDLE 2.7?
What's New in IDLE 2.7?
=======================
=======================
...
...
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