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
d0cadba8
Kaydet (Commit)
d0cadba8
authored
Eki 12, 2015
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22726: Re-activate config dialog help button with some content about
the other buttons and the new IDLE Dark theme.
üst
1fdc80b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
20 deletions
+33
-20
configDialog.py
Lib/idlelib/configDialog.py
+32
-19
textView.py
Lib/idlelib/textView.py
+1
-1
No files found.
Lib/idlelib/configDialog.py
Dosyayı görüntüle @
d0cadba8
...
...
@@ -20,7 +20,9 @@ from idlelib.keybindingDialog import GetKeysDialog
from
idlelib.configSectionNameDialog
import
GetCfgSectionNameDialog
from
idlelib.configHelpSourceEdit
import
GetHelpSourceDialog
from
idlelib.tabbedpages
import
TabbedPageSet
from
idlelib.textView
import
view_text
from
idlelib
import
macosxSupport
class
ConfigDialog
(
Toplevel
):
def
__init__
(
self
,
parent
,
title
=
''
,
_htest
=
False
,
_utest
=
False
):
...
...
@@ -85,6 +87,7 @@ class ConfigDialog(Toplevel):
self
.
CreatePageKeys
()
self
.
CreatePageGeneral
()
self
.
create_action_buttons
()
.
pack
(
side
=
BOTTOM
)
def
create_action_buttons
(
self
):
if
macosxSupport
.
isAquaTk
():
# Changing the default padding on OSX results in unreadable
...
...
@@ -94,28 +97,18 @@ class ConfigDialog(Toplevel):
paddingArgs
=
{
'padx'
:
6
,
'pady'
:
3
}
outer
=
Frame
(
self
,
pady
=
2
)
buttons
=
Frame
(
outer
,
pady
=
2
)
self
.
buttonOk
=
Button
(
buttons
,
text
=
'Ok'
,
command
=
self
.
Ok
,
takefocus
=
FALSE
,
**
paddingArgs
)
self
.
buttonApply
=
Button
(
buttons
,
text
=
'Apply'
,
command
=
self
.
Apply
,
takefocus
=
FALSE
,
**
paddingArgs
)
self
.
buttonCancel
=
Button
(
buttons
,
text
=
'Cancel'
,
command
=
self
.
Cancel
,
takefocus
=
FALSE
,
**
paddingArgs
)
self
.
buttonOk
.
pack
(
side
=
LEFT
,
padx
=
5
)
self
.
buttonApply
.
pack
(
side
=
LEFT
,
padx
=
5
)
self
.
buttonCancel
.
pack
(
side
=
LEFT
,
padx
=
5
)
# Comment out Help button creation and packing until implement self.Help
## self.buttonHelp = Button(
## buttons, text='Help', command=self.Help,
## takefocus=FALSE, **paddingArgs)
## self.buttonHelp.pack(side=RIGHT, padx=5)
for
txt
,
cmd
in
(
(
'Ok'
,
self
.
Ok
),
(
'Apply'
,
self
.
Apply
),
(
'Cancel'
,
self
.
Cancel
),
(
'Help'
,
self
.
Help
)):
Button
(
buttons
,
text
=
txt
,
command
=
cmd
,
takefocus
=
FALSE
,
**
paddingArgs
)
.
pack
(
side
=
LEFT
,
padx
=
5
)
# add space above buttons
Frame
(
outer
,
height
=
2
,
borderwidth
=
0
)
.
pack
(
side
=
TOP
)
buttons
.
pack
(
side
=
BOTTOM
)
return
outer
def
CreatePageFontTab
(
self
):
parent
=
self
.
parent
self
.
fontSize
=
StringVar
(
parent
)
...
...
@@ -1183,7 +1176,27 @@ class ConfigDialog(Toplevel):
self
.
ActivateConfigChanges
()
def
Help
(
self
):
pass
page
=
self
.
tabPages
.
_current_page
view_text
(
self
,
title
=
'Help for IDLE preferences'
,
text
=
help_common
+
help_pages
.
get
(
page
,
''
))
help_common
=
'''
\
When you click either the Apply or Ok buttons, settings in this
dialog that are different from IDLE's default are saved in
a .idlerc directory in your home directory. Except as noted,
hese changes apply to all versions of IDLE installed on this
machine. Some do not take affect until IDLE is restarted.
[Cancel] only cancels changes made since the last save.
'''
help_pages
=
{
'Highlighting'
:
'''
Highlighting:
The IDLE Dark color theme is new in Octover 2015. It can only
be used with older IDLE releases if it is saved as a custom
theme, with a different name.
'''
}
class
VerticalScrolledFrame
(
Frame
):
"""A pure Tkinter vertically scrollable frame.
...
...
Lib/idlelib/textView.py
Dosyayı görüntüle @
d0cadba8
...
...
@@ -21,7 +21,7 @@ class TextViewer(Toplevel):
Toplevel
.
__init__
(
self
,
parent
)
self
.
configure
(
borderwidth
=
5
)
# place dialog below parent if running htest
self
.
geometry
(
"=
%
dx
%
d+
%
d+
%
d"
%
(
625
,
500
,
self
.
geometry
(
"=
%
dx
%
d+
%
d+
%
d"
%
(
750
,
500
,
parent
.
winfo_rootx
()
+
10
,
parent
.
winfo_rooty
()
+
(
10
if
not
_htest
else
100
)))
#elguavas - config placeholders til config stuff completed
...
...
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