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
7bc279c4
Kaydet (Commit)
7bc279c4
authored
Ara 16, 2014
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge with 3.4
üst
03a144bb
df938694
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
24 deletions
+10
-24
FormatParagraph.py
Lib/idlelib/FormatParagraph.py
+4
-2
config-extensions.def
Lib/idlelib/config-extensions.def
+1
-0
config-main.def
Lib/idlelib/config-main.def
+0
-3
configDialog.py
Lib/idlelib/configDialog.py
+0
-19
NEWS
Misc/NEWS
+5
-0
No files found.
Lib/idlelib/FormatParagraph.py
Dosyayı görüntüle @
7bc279c4
...
@@ -44,9 +44,11 @@ class FormatParagraph:
...
@@ -44,9 +44,11 @@ class FormatParagraph:
The length limit parameter is for testing with a known value.
The length limit parameter is for testing with a known value.
"""
"""
if
limit
==
None
:
if
limit
is
None
:
# The default length limit is that defined by pep8
limit
=
idleConf
.
GetOption
(
limit
=
idleConf
.
GetOption
(
'main'
,
'FormatParagraph'
,
'paragraph'
,
type
=
'int'
)
'extensions'
,
'FormatParagraph'
,
'max-width'
,
type
=
'int'
,
default
=
72
)
text
=
self
.
editwin
.
text
text
=
self
.
editwin
.
text
first
,
last
=
self
.
editwin
.
get_selection_indices
()
first
,
last
=
self
.
editwin
.
get_selection_indices
()
if
first
and
last
:
if
first
and
last
:
...
...
Lib/idlelib/config-extensions.def
Dosyayı görüntüle @
7bc279c4
...
@@ -66,6 +66,7 @@ toggle-code-context=
...
@@ -66,6 +66,7 @@ toggle-code-context=
[FormatParagraph]
[FormatParagraph]
enable=True
enable=True
max-width=72
[FormatParagraph_cfgBindings]
[FormatParagraph_cfgBindings]
format-paragraph=<Alt-Key-q>
format-paragraph=<Alt-Key-q>
...
...
Lib/idlelib/config-main.def
Dosyayı görüntüle @
7bc279c4
...
@@ -58,9 +58,6 @@ font-size= 10
...
@@ -58,9 +58,6 @@ font-size= 10
font-bold= 0
font-bold= 0
encoding= none
encoding= none
[FormatParagraph]
paragraph=72
[Indent]
[Indent]
use-spaces= 1
use-spaces= 1
num-spaces= 4
num-spaces= 4
...
...
Lib/idlelib/configDialog.py
Dosyayı görüntüle @
7bc279c4
...
@@ -373,7 +373,6 @@ class ConfigDialog(Toplevel):
...
@@ -373,7 +373,6 @@ class ConfigDialog(Toplevel):
parent
=
self
.
parent
parent
=
self
.
parent
self
.
winWidth
=
StringVar
(
parent
)
self
.
winWidth
=
StringVar
(
parent
)
self
.
winHeight
=
StringVar
(
parent
)
self
.
winHeight
=
StringVar
(
parent
)
self
.
paraWidth
=
StringVar
(
parent
)
self
.
startupEdit
=
IntVar
(
parent
)
self
.
startupEdit
=
IntVar
(
parent
)
self
.
autoSave
=
IntVar
(
parent
)
self
.
autoSave
=
IntVar
(
parent
)
self
.
encoding
=
StringVar
(
parent
)
self
.
encoding
=
StringVar
(
parent
)
...
@@ -389,7 +388,6 @@ class ConfigDialog(Toplevel):
...
@@ -389,7 +388,6 @@ class ConfigDialog(Toplevel):
frameSave
=
LabelFrame
(
frame
,
borderwidth
=
2
,
relief
=
GROOVE
,
frameSave
=
LabelFrame
(
frame
,
borderwidth
=
2
,
relief
=
GROOVE
,
text
=
' Autosave Preferences '
)
text
=
' Autosave Preferences '
)
frameWinSize
=
Frame
(
frame
,
borderwidth
=
2
,
relief
=
GROOVE
)
frameWinSize
=
Frame
(
frame
,
borderwidth
=
2
,
relief
=
GROOVE
)
frameParaSize
=
Frame
(
frame
,
borderwidth
=
2
,
relief
=
GROOVE
)
frameHelp
=
LabelFrame
(
frame
,
borderwidth
=
2
,
relief
=
GROOVE
,
frameHelp
=
LabelFrame
(
frame
,
borderwidth
=
2
,
relief
=
GROOVE
,
text
=
' Additional Help Sources '
)
text
=
' Additional Help Sources '
)
#frameRun
#frameRun
...
@@ -417,11 +415,6 @@ class ConfigDialog(Toplevel):
...
@@ -417,11 +415,6 @@ class ConfigDialog(Toplevel):
labelWinHeightTitle
=
Label
(
frameWinSize
,
text
=
'Height'
)
labelWinHeightTitle
=
Label
(
frameWinSize
,
text
=
'Height'
)
entryWinHeight
=
Entry
(
entryWinHeight
=
Entry
(
frameWinSize
,
textvariable
=
self
.
winHeight
,
width
=
3
)
frameWinSize
,
textvariable
=
self
.
winHeight
,
width
=
3
)
#paragraphFormatWidth
labelParaWidthTitle
=
Label
(
frameParaSize
,
text
=
'Paragraph reformat width (in characters)'
)
entryParaWidth
=
Entry
(
frameParaSize
,
textvariable
=
self
.
paraWidth
,
width
=
3
)
#frameHelp
#frameHelp
frameHelpList
=
Frame
(
frameHelp
)
frameHelpList
=
Frame
(
frameHelp
)
frameHelpListButtons
=
Frame
(
frameHelpList
)
frameHelpListButtons
=
Frame
(
frameHelpList
)
...
@@ -447,7 +440,6 @@ class ConfigDialog(Toplevel):
...
@@ -447,7 +440,6 @@ class ConfigDialog(Toplevel):
frameRun
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
fill
=
X
)
frameRun
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
fill
=
X
)
frameSave
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
fill
=
X
)
frameSave
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
fill
=
X
)
frameWinSize
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
fill
=
X
)
frameWinSize
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
fill
=
X
)
frameParaSize
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
fill
=
X
)
frameHelp
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
expand
=
TRUE
,
fill
=
BOTH
)
frameHelp
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
expand
=
TRUE
,
fill
=
BOTH
)
#frameRun
#frameRun
labelRunChoiceTitle
.
pack
(
side
=
LEFT
,
anchor
=
W
,
padx
=
5
,
pady
=
5
)
labelRunChoiceTitle
.
pack
(
side
=
LEFT
,
anchor
=
W
,
padx
=
5
,
pady
=
5
)
...
@@ -463,9 +455,6 @@ class ConfigDialog(Toplevel):
...
@@ -463,9 +455,6 @@ class ConfigDialog(Toplevel):
labelWinHeightTitle
.
pack
(
side
=
RIGHT
,
anchor
=
E
,
pady
=
5
)
labelWinHeightTitle
.
pack
(
side
=
RIGHT
,
anchor
=
E
,
pady
=
5
)
entryWinWidth
.
pack
(
side
=
RIGHT
,
anchor
=
E
,
padx
=
10
,
pady
=
5
)
entryWinWidth
.
pack
(
side
=
RIGHT
,
anchor
=
E
,
padx
=
10
,
pady
=
5
)
labelWinWidthTitle
.
pack
(
side
=
RIGHT
,
anchor
=
E
,
pady
=
5
)
labelWinWidthTitle
.
pack
(
side
=
RIGHT
,
anchor
=
E
,
pady
=
5
)
#paragraphFormatWidth
labelParaWidthTitle
.
pack
(
side
=
LEFT
,
anchor
=
W
,
padx
=
5
,
pady
=
5
)
entryParaWidth
.
pack
(
side
=
RIGHT
,
anchor
=
E
,
padx
=
10
,
pady
=
5
)
#frameHelp
#frameHelp
frameHelpListButtons
.
pack
(
side
=
RIGHT
,
padx
=
5
,
pady
=
5
,
fill
=
Y
)
frameHelpListButtons
.
pack
(
side
=
RIGHT
,
padx
=
5
,
pady
=
5
,
fill
=
Y
)
frameHelpList
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
expand
=
TRUE
,
fill
=
BOTH
)
frameHelpList
.
pack
(
side
=
TOP
,
padx
=
5
,
pady
=
5
,
expand
=
TRUE
,
fill
=
BOTH
)
...
@@ -492,7 +481,6 @@ class ConfigDialog(Toplevel):
...
@@ -492,7 +481,6 @@ class ConfigDialog(Toplevel):
self
.
keysAreBuiltin
.
trace_variable
(
'w'
,
self
.
VarChanged_keysAreBuiltin
)
self
.
keysAreBuiltin
.
trace_variable
(
'w'
,
self
.
VarChanged_keysAreBuiltin
)
self
.
winWidth
.
trace_variable
(
'w'
,
self
.
VarChanged_winWidth
)
self
.
winWidth
.
trace_variable
(
'w'
,
self
.
VarChanged_winWidth
)
self
.
winHeight
.
trace_variable
(
'w'
,
self
.
VarChanged_winHeight
)
self
.
winHeight
.
trace_variable
(
'w'
,
self
.
VarChanged_winHeight
)
self
.
paraWidth
.
trace_variable
(
'w'
,
self
.
VarChanged_paraWidth
)
self
.
startupEdit
.
trace_variable
(
'w'
,
self
.
VarChanged_startupEdit
)
self
.
startupEdit
.
trace_variable
(
'w'
,
self
.
VarChanged_startupEdit
)
self
.
autoSave
.
trace_variable
(
'w'
,
self
.
VarChanged_autoSave
)
self
.
autoSave
.
trace_variable
(
'w'
,
self
.
VarChanged_autoSave
)
self
.
encoding
.
trace_variable
(
'w'
,
self
.
VarChanged_encoding
)
self
.
encoding
.
trace_variable
(
'w'
,
self
.
VarChanged_encoding
)
...
@@ -577,10 +565,6 @@ class ConfigDialog(Toplevel):
...
@@ -577,10 +565,6 @@ class ConfigDialog(Toplevel):
value
=
self
.
winHeight
.
get
()
value
=
self
.
winHeight
.
get
()
self
.
AddChangedItem
(
'main'
,
'EditorWindow'
,
'height'
,
value
)
self
.
AddChangedItem
(
'main'
,
'EditorWindow'
,
'height'
,
value
)
def
VarChanged_paraWidth
(
self
,
*
params
):
value
=
self
.
paraWidth
.
get
()
self
.
AddChangedItem
(
'main'
,
'FormatParagraph'
,
'paragraph'
,
value
)
def
VarChanged_startupEdit
(
self
,
*
params
):
def
VarChanged_startupEdit
(
self
,
*
params
):
value
=
self
.
startupEdit
.
get
()
value
=
self
.
startupEdit
.
get
()
self
.
AddChangedItem
(
'main'
,
'General'
,
'editor-on-startup'
,
value
)
self
.
AddChangedItem
(
'main'
,
'General'
,
'editor-on-startup'
,
value
)
...
@@ -1077,9 +1061,6 @@ class ConfigDialog(Toplevel):
...
@@ -1077,9 +1061,6 @@ class ConfigDialog(Toplevel):
'main'
,
'EditorWindow'
,
'width'
,
type
=
'int'
))
'main'
,
'EditorWindow'
,
'width'
,
type
=
'int'
))
self
.
winHeight
.
set
(
idleConf
.
GetOption
(
self
.
winHeight
.
set
(
idleConf
.
GetOption
(
'main'
,
'EditorWindow'
,
'height'
,
type
=
'int'
))
'main'
,
'EditorWindow'
,
'height'
,
type
=
'int'
))
#initial paragraph reformat size
self
.
paraWidth
.
set
(
idleConf
.
GetOption
(
'main'
,
'FormatParagraph'
,
'paragraph'
,
type
=
'int'
))
# default source encoding
# default source encoding
self
.
encoding
.
set
(
idleConf
.
GetOption
(
self
.
encoding
.
set
(
idleConf
.
GetOption
(
'main'
,
'EditorWindow'
,
'encoding'
,
default
=
'none'
))
'main'
,
'EditorWindow'
,
'encoding'
,
default
=
'none'
))
...
...
Misc/NEWS
Dosyayı görüntüle @
7bc279c4
...
@@ -1226,6 +1226,11 @@ Library
...
@@ -1226,6 +1226,11 @@ Library
IDLE
IDLE
----
----
- Issue #20577: Configuration of the max line length for the FormatParagraph
extension has been moved from the General tab of the Idle preferences dialog
to the FormatParagraph tab of the Config Extensions dialog.
Patch by Tal Einat.
- Issue #16893: Update Idle doc chapter to match current Idle and add new
- Issue #16893: Update Idle doc chapter to match current Idle and add new
information.
information.
...
...
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