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
672ce571
Kaydet (Commit)
672ce571
authored
Kas 30, 2002
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert some more 1/0 to True/False
üst
f4c4f115
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
TreeWidget.py
Lib/idlelib/TreeWidget.py
+3
-3
UndoDelegator.py
Lib/idlelib/UndoDelegator.py
+11
-11
No files found.
Lib/idlelib/TreeWidget.py
Dosyayı görüntüle @
672ce571
...
...
@@ -63,7 +63,7 @@ class TreeNode:
self
.
parent
=
parent
self
.
item
=
item
self
.
state
=
'collapsed'
self
.
selected
=
0
self
.
selected
=
False
self
.
children
=
[]
self
.
x
=
self
.
y
=
None
self
.
iconimages
=
{}
# cache of PhotoImage instances for icons
...
...
@@ -90,7 +90,7 @@ class TreeNode:
if
self
.
selected
:
return
self
.
deselectall
()
self
.
selected
=
1
self
.
selected
=
True
self
.
canvas
.
delete
(
self
.
image_id
)
self
.
drawicon
()
self
.
drawtext
()
...
...
@@ -98,7 +98,7 @@ class TreeNode:
def
deselect
(
self
,
event
=
None
):
if
not
self
.
selected
:
return
self
.
selected
=
0
self
.
selected
=
False
self
.
canvas
.
delete
(
self
.
image_id
)
self
.
drawicon
()
self
.
drawtext
()
...
...
Lib/idlelib/UndoDelegator.py
Dosyayı görüntüle @
672ce571
...
...
@@ -57,7 +57,7 @@ class UndoDelegator(Delegator):
self
.
saved
=
self
.
pointer
else
:
self
.
saved
=
-
1
self
.
can_merge
=
0
self
.
can_merge
=
False
self
.
check_saved
()
def
get_saved
(
self
):
...
...
@@ -111,7 +111,7 @@ class UndoDelegator(Delegator):
# been done, so don't execute it again
self
.
addcmd
(
cmd
,
0
)
def
addcmd
(
self
,
cmd
,
execute
=
1
):
def
addcmd
(
self
,
cmd
,
execute
=
True
):
if
execute
:
cmd
.
do
(
self
.
delegate
)
if
self
.
undoblock
!=
0
:
...
...
@@ -131,7 +131,7 @@ class UndoDelegator(Delegator):
self
.
pointer
=
self
.
pointer
-
1
if
self
.
saved
>=
0
:
self
.
saved
=
self
.
saved
-
1
self
.
can_merge
=
1
self
.
can_merge
=
True
self
.
check_saved
()
def
undo_event
(
self
,
event
):
...
...
@@ -141,7 +141,7 @@ class UndoDelegator(Delegator):
cmd
=
self
.
undolist
[
self
.
pointer
-
1
]
cmd
.
undo
(
self
.
delegate
)
self
.
pointer
=
self
.
pointer
-
1
self
.
can_merge
=
0
self
.
can_merge
=
False
self
.
check_saved
()
return
"break"
...
...
@@ -152,7 +152,7 @@ class UndoDelegator(Delegator):
cmd
=
self
.
undolist
[
self
.
pointer
]
cmd
.
redo
(
self
.
delegate
)
self
.
pointer
=
self
.
pointer
+
1
self
.
can_merge
=
0
self
.
can_merge
=
False
self
.
check_saved
()
return
"break"
...
...
@@ -237,19 +237,19 @@ class InsertCommand(Command):
def
merge
(
self
,
cmd
):
if
self
.
__class__
is
not
cmd
.
__class__
:
return
0
return
False
if
self
.
index2
!=
cmd
.
index1
:
return
0
return
False
if
self
.
tags
!=
cmd
.
tags
:
return
0
return
False
if
len
(
cmd
.
chars
)
!=
1
:
return
0
return
False
if
self
.
chars
and
\
self
.
classify
(
self
.
chars
[
-
1
])
!=
self
.
classify
(
cmd
.
chars
):
return
0
return
False
self
.
index2
=
cmd
.
index2
self
.
chars
=
self
.
chars
+
cmd
.
chars
return
1
return
True
alphanumeric
=
string
.
ascii_letters
+
string
.
digits
+
"_"
...
...
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