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
30f1f672
Kaydet (Commit)
30f1f672
authored
Tem 30, 2015
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #13884: Idle: Remove tearoff lines from menus. Patch by Roger Serwy.
üst
41ca8285
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
idle.rst
Doc/library/idle.rst
+0
-2
EditorWindow.py
Lib/idlelib/EditorWindow.py
+4
-3
help.txt
Lib/idlelib/help.txt
+1
-3
macosxSupport.py
Lib/idlelib/macosxSupport.py
+3
-2
No files found.
Doc/library/idle.rst
Dosyayı görüntüle @
30f1f672
...
...
@@ -37,8 +37,6 @@ context menu.
IDLE's menus dynamically change based on which window is currently selected.
Each menu documented below indicates which window type it is associated with.
Click on the dotted line at the top of a menu to "tear it off": a separate
window containing the menu is created (for Unix and Windows only).
File menu (Shell and Editor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
30f1f672
...
...
@@ -447,14 +447,15 @@ class EditorWindow(object):
self
.
menudict
=
menudict
=
{}
for
name
,
label
in
self
.
menu_specs
:
underline
,
label
=
prepstr
(
label
)
menudict
[
name
]
=
menu
=
Menu
(
mbar
,
name
=
name
)
menudict
[
name
]
=
menu
=
Menu
(
mbar
,
name
=
name
,
tearoff
=
0
)
mbar
.
add_cascade
(
label
=
label
,
menu
=
menu
,
underline
=
underline
)
if
macosxSupport
.
isCarbonTk
():
# Insert the application menu
menudict
[
'application'
]
=
menu
=
Menu
(
mbar
,
name
=
'apple'
)
menudict
[
'application'
]
=
menu
=
Menu
(
mbar
,
name
=
'apple'
,
tearoff
=
0
)
mbar
.
add_cascade
(
label
=
'IDLE'
,
menu
=
menu
)
self
.
fill_menus
()
self
.
recent_files_menu
=
Menu
(
self
.
menubar
)
self
.
recent_files_menu
=
Menu
(
self
.
menubar
,
tearoff
=
0
)
self
.
menudict
[
'file'
]
.
insert_cascade
(
3
,
label
=
'Recent Files'
,
underline
=
0
,
menu
=
self
.
recent_files_menu
)
...
...
Lib/idlelib/help.txt
Dosyayı görüntüle @
30f1f672
...
...
@@ -15,9 +15,7 @@ Menus:
IDLE has two window types the Shell window and the Editor window. It is
possible to have multiple editor windows simultaneously. IDLE's
menus dynamically change based on which window is currently selected. Each menu
documented below indicates which window type it is associated with. Click on
the dotted line at the top of a menu to "tear it off": a separate window
containing the menu is created (for Unix and Windows only).
documented below indicates which window type it is associated with.
File Menu (Shell and Editor):
...
...
Lib/idlelib/macosxSupport.py
Dosyayı görüntüle @
30f1f672
...
...
@@ -145,7 +145,7 @@ def overrideRootMenu(root, flist):
root
.
configure
(
menu
=
menubar
)
menudict
=
{}
menudict
[
'windows'
]
=
menu
=
Menu
(
menubar
,
name
=
'windows'
)
menudict
[
'windows'
]
=
menu
=
Menu
(
menubar
,
name
=
'windows'
,
tearoff
=
0
)
menubar
.
add_cascade
(
label
=
'Window'
,
menu
=
menu
,
underline
=
0
)
def
postwindowsmenu
(
menu
=
menu
):
...
...
@@ -191,7 +191,8 @@ def overrideRootMenu(root, flist):
if
isCarbonTk
():
# for Carbon AquaTk, replace the default Tk apple menu
menudict
[
'application'
]
=
menu
=
Menu
(
menubar
,
name
=
'apple'
)
menudict
[
'application'
]
=
menu
=
Menu
(
menubar
,
name
=
'apple'
,
tearoff
=
0
)
menubar
.
add_cascade
(
label
=
'IDLE'
,
menu
=
menu
)
Bindings
.
menudefs
.
insert
(
0
,
(
'application'
,
[
...
...
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