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
a9421fb3
Kaydet (Commit)
a9421fb3
authored
Eki 23, 2014
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #3068: Add Idle extension configuration dialog to Options menu.
Original patch by Tal Einat.
üst
c803bd84
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
5 deletions
+20
-5
Bindings.py
Lib/idlelib/Bindings.py
+2
-1
EditorWindow.py
Lib/idlelib/EditorWindow.py
+4
-0
configDialog.py
Lib/idlelib/configDialog.py
+0
-0
configHandler.py
Lib/idlelib/configHandler.py
+3
-0
htest.py
Lib/idlelib/idle_test/htest.py
+9
-0
macosxSupport.py
Lib/idlelib/macosxSupport.py
+2
-4
No files found.
Lib/idlelib/Bindings.py
Dosyayı görüntüle @
a9421fb3
...
...
@@ -77,7 +77,8 @@ menudefs = [
(
'!_Auto-open Stack Viewer'
,
'<<toggle-jit-stack-viewer>>'
),
]),
(
'options'
,
[
(
'_Configure IDLE...'
,
'<<open-config-dialog>>'
),
(
'Configure _IDLE'
,
'<<open-config-dialog>>'
),
(
'Configure _Extensions'
,
'<<open-config-extensions-dialog>>'
),
None
,
]),
(
'help'
,
[
...
...
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
a9421fb3
...
...
@@ -189,6 +189,8 @@ class EditorWindow(object):
text
.
bind
(
"<<python-docs>>"
,
self
.
python_docs
)
text
.
bind
(
"<<about-idle>>"
,
self
.
about_dialog
)
text
.
bind
(
"<<open-config-dialog>>"
,
self
.
config_dialog
)
text
.
bind
(
"<<open-config-extensions-dialog>>"
,
self
.
config_extensions_dialog
)
text
.
bind
(
"<<open-module>>"
,
self
.
open_module
)
text
.
bind
(
"<<do-nothing>>"
,
lambda
event
:
"break"
)
text
.
bind
(
"<<select-all>>"
,
self
.
select_all
)
...
...
@@ -543,6 +545,8 @@ class EditorWindow(object):
def
config_dialog
(
self
,
event
=
None
):
configDialog
.
ConfigDialog
(
self
.
top
,
'Settings'
)
def
config_extensions_dialog
(
self
,
event
=
None
):
configDialog
.
ConfigExtensionsDialog
(
self
.
top
)
def
help_dialog
(
self
,
event
=
None
):
if
self
.
root
:
...
...
Lib/idlelib/configDialog.py
Dosyayı görüntüle @
a9421fb3
This diff is collapsed.
Click to expand it.
Lib/idlelib/configHandler.py
Dosyayı görüntüle @
a9421fb3
...
...
@@ -44,6 +44,9 @@ class IdleConfParser(ConfigParser):
Get an option value for given section/option or return default.
If type is specified, return as type.
"""
# TODO Use default as fallback, at least if not None
# Should also print Warning(file, section, option).
# Currently may raise ValueError
if
not
self
.
has_option
(
section
,
option
):
return
default
if
type
==
'bool'
:
...
...
Lib/idlelib/idle_test/htest.py
Dosyayı görüntüle @
a9421fb3
...
...
@@ -93,6 +93,15 @@ _class_browser_spec = {
"Double clicking on items prints a traceback for an exception "
"that is ignored."
}
ConfigExtensionsDialog_spec
=
{
'file'
:
'configDialog'
,
'kwds'
:
{
'title'
:
'Test Extension Configuration'
,
'_htest'
:
True
,},
'msg'
:
"IDLE extensions dialog.
\n
"
"
\n
[Ok] to close the dialog.[Apply] to apply the settings and "
"and [Cancel] to revert all changes.
\n
Re-run the test to ensure "
"changes made have persisted."
}
_color_delegator_spec
=
{
'file'
:
'ColorDelegator'
,
...
...
Lib/idlelib/macosxSupport.py
Dosyayı görüntüle @
a9421fb3
...
...
@@ -140,11 +140,9 @@ def overrideRootMenu(root, flist):
# Remove the 'About' entry from the help menu, it is in the application
# menu
del
Bindings
.
menudefs
[
-
1
][
1
][
0
:
2
]
# Remove the 'Configure' entry from the options menu, it is in the
# Remove the 'Configure Idle' entry from the options menu, it is in the
# application menu as 'Preferences'
del
Bindings
.
menudefs
[
-
2
][
1
][
0
:
2
]
del
Bindings
.
menudefs
[
-
2
][
1
][
0
]
menubar
=
Menu
(
root
)
root
.
configure
(
menu
=
menubar
)
menudict
=
{}
...
...
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