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
02c0ed06
Kaydet (Commit)
02c0ed06
authored
May 21, 2013
tarafından
Roger Serwy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#14146: Highlight source line while debugging on Windows.
üst
d7cb5067
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
EditorWindow.py
Lib/idlelib/EditorWindow.py
+30
-0
NEWS
Misc/NEWS
+6
-0
No files found.
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
02c0ed06
...
...
@@ -346,6 +346,36 @@ class EditorWindow(object):
self
.
askinteger
=
tkSimpleDialog
.
askinteger
self
.
showerror
=
tkMessageBox
.
showerror
self
.
_highlight_workaround
()
# Fix selection tags on Windows
def
_highlight_workaround
(
self
):
# On Windows, Tk removes painting of the selection
# tags which is different behavior than on Linux and Mac.
# See issue14146 for more information.
if
not
sys
.
platform
.
startswith
(
'win'
):
return
text
=
self
.
text
text
.
event_add
(
"<<Highlight-FocusOut>>"
,
"<FocusOut>"
)
text
.
event_add
(
"<<Highlight-FocusIn>>"
,
"<FocusIn>"
)
def
highlight_fix
(
focus
):
sel_range
=
text
.
tag_ranges
(
"sel"
)
if
sel_range
:
if
focus
==
'out'
:
HILITE_CONFIG
=
idleConf
.
GetHighlight
(
idleConf
.
CurrentTheme
(),
'hilite'
)
text
.
tag_config
(
"sel_fix"
,
HILITE_CONFIG
)
text
.
tag_raise
(
"sel_fix"
)
text
.
tag_add
(
"sel_fix"
,
*
sel_range
)
elif
focus
==
'in'
:
text
.
tag_remove
(
"sel_fix"
,
"1.0"
,
"end"
)
text
.
bind
(
"<<Highlight-FocusOut>>"
,
lambda
ev
:
highlight_fix
(
"out"
))
text
.
bind
(
"<<Highlight-FocusIn>>"
,
lambda
ev
:
highlight_fix
(
"in"
))
def
_filename_to_unicode
(
self
,
filename
):
"""convert filename to unicode in order to display it in Tk"""
if
isinstance
(
filename
,
unicode
)
or
not
filename
:
...
...
Misc/NEWS
Dosyayı görüntüle @
02c0ed06
...
...
@@ -21,6 +21,12 @@ Library
- Fix typos in the multiprocessing module.
IDLE
----
- Issue #14146: Highlight source line while debugging on Windows.
Tests
-----
...
...
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