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
e1b4a161
Kaydet (Commit)
e1b4a161
authored
Agu 10, 2007
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix circular import issue
üst
f2335a9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
AutoComplete.py
Lib/idlelib/AutoComplete.py
+5
-4
AutoCompleteWindow.py
Lib/idlelib/AutoCompleteWindow.py
+5
-5
No files found.
Lib/idlelib/AutoComplete.py
Dosyayı görüntüle @
e1b4a161
...
...
@@ -8,10 +8,6 @@ import sys
import
string
from
.configHandler
import
idleConf
from
.
import
AutoCompleteWindow
from
.HyperParser
import
HyperParser
import
__main__
# This string includes all chars that may be in a file name (without a path
# separator)
...
...
@@ -22,6 +18,11 @@ ID_CHARS = string.ascii_letters + string.digits + "_"
# These constants represent the two different types of completions
COMPLETE_ATTRIBUTES
,
COMPLETE_FILES
=
range
(
1
,
2
+
1
)
from
.
import
AutoCompleteWindow
from
.HyperParser
import
HyperParser
import
__main__
class
AutoComplete
:
menudefs
=
[
...
...
Lib/idlelib/AutoCompleteWindow.py
Dosyayı görüntüle @
e1b4a161
...
...
@@ -3,7 +3,7 @@ An auto-completion window for IDLE, used by the AutoComplete extension
"""
from
Tkinter
import
*
from
.MultiCall
import
MC_SHIFT
import
idlelib.AutoComplete
from
.AutoComplete
import
COMPLETE_FILES
,
COMPLETE_ATTRIBUTES
HIDE_VIRTUAL_EVENT_NAME
=
"<<autocompletewindow-hide>>"
HIDE_SEQUENCES
=
(
"<FocusOut>"
,
"<ButtonPress>"
)
...
...
@@ -259,7 +259,7 @@ class AutoCompleteWindow:
if
keysym
!=
"Tab"
:
self
.
lastkey_was_tab
=
False
if
(
len
(
keysym
)
==
1
or
keysym
in
(
"underscore"
,
"BackSpace"
)
or
(
self
.
mode
==
AutoComplete
.
COMPLETE_FILES
and
keysym
in
or
(
self
.
mode
==
COMPLETE_FILES
and
keysym
in
(
"period"
,
"minus"
)))
\
and
not
(
state
&
~
MC_SHIFT
):
# Normal editing of text
...
...
@@ -298,10 +298,10 @@ class AutoCompleteWindow:
self
.
hide_window
()
return
elif
(
self
.
mode
==
AutoComplete
.
COMPLETE_ATTRIBUTES
and
keysym
in
elif
(
self
.
mode
==
COMPLETE_ATTRIBUTES
and
keysym
in
(
"period"
,
"space"
,
"parenleft"
,
"parenright"
,
"bracketleft"
,
"bracketright"
))
or
\
(
self
.
mode
==
AutoComplete
.
COMPLETE_FILES
and
keysym
in
(
self
.
mode
==
COMPLETE_FILES
and
keysym
in
(
"slash"
,
"backslash"
,
"quotedbl"
,
"apostrophe"
))
\
and
not
(
state
&
~
MC_SHIFT
):
# If start is a prefix of the selection, but is not '' when
...
...
@@ -309,7 +309,7 @@ class AutoCompleteWindow:
# selected completion. Anyway, close the list.
cursel
=
int
(
self
.
listbox
.
curselection
()[
0
])
if
self
.
completions
[
cursel
][:
len
(
self
.
start
)]
==
self
.
start
\
and
(
self
.
mode
==
AutoComplete
.
COMPLETE_ATTRIBUTES
or
self
.
start
):
and
(
self
.
mode
==
COMPLETE_ATTRIBUTES
or
self
.
start
):
self
.
_change_start
(
self
.
completions
[
cursel
])
self
.
hide_window
()
return
...
...
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