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
2caac73a
Kaydet (Commit)
2caac73a
authored
Eyl 05, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added Menu.insert*() methods [Fred]
üst
e1a7a3b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
Tkinter.py
Lib/lib-tk/Tkinter.py
+13
-0
Tkinter.py
Lib/tkinter/Tkinter.py
+13
-0
No files found.
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
2caac73a
...
@@ -1255,6 +1255,19 @@ class Menu(Widget):
...
@@ -1255,6 +1255,19 @@ class Menu(Widget):
self
.
add
(
'radiobutton'
,
cnf
or
kw
)
self
.
add
(
'radiobutton'
,
cnf
or
kw
)
def
add_separator
(
self
,
cnf
=
{},
**
kw
):
def
add_separator
(
self
,
cnf
=
{},
**
kw
):
self
.
add
(
'separator'
,
cnf
or
kw
)
self
.
add
(
'separator'
,
cnf
or
kw
)
def
insert
(
self
,
index
,
itemType
,
cnf
=
{},
**
kw
):
apply
(
self
.
tk
.
call
,
(
self
.
_w
,
'insert'
,
index
,
itemType
)
+
self
.
_options
(
cnf
,
kw
))
def
insert_cascade
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'cascade'
,
cnf
or
kw
)
def
insert_checkbutton
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'checkbutton'
,
cnf
or
kw
)
def
insert_command
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'command'
,
cnf
or
kw
)
def
insert_radiobutton
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'radiobutton'
,
cnf
or
kw
)
def
insert_separator
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'separator'
,
cnf
or
kw
)
def
delete
(
self
,
index1
,
index2
=
None
):
def
delete
(
self
,
index1
,
index2
=
None
):
self
.
tk
.
call
(
self
.
_w
,
'delete'
,
index1
,
index2
)
self
.
tk
.
call
(
self
.
_w
,
'delete'
,
index1
,
index2
)
def
entryconfig
(
self
,
index
,
cnf
=
None
,
**
kw
):
def
entryconfig
(
self
,
index
,
cnf
=
None
,
**
kw
):
...
...
Lib/tkinter/Tkinter.py
Dosyayı görüntüle @
2caac73a
...
@@ -1255,6 +1255,19 @@ class Menu(Widget):
...
@@ -1255,6 +1255,19 @@ class Menu(Widget):
self
.
add
(
'radiobutton'
,
cnf
or
kw
)
self
.
add
(
'radiobutton'
,
cnf
or
kw
)
def
add_separator
(
self
,
cnf
=
{},
**
kw
):
def
add_separator
(
self
,
cnf
=
{},
**
kw
):
self
.
add
(
'separator'
,
cnf
or
kw
)
self
.
add
(
'separator'
,
cnf
or
kw
)
def
insert
(
self
,
index
,
itemType
,
cnf
=
{},
**
kw
):
apply
(
self
.
tk
.
call
,
(
self
.
_w
,
'insert'
,
index
,
itemType
)
+
self
.
_options
(
cnf
,
kw
))
def
insert_cascade
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'cascade'
,
cnf
or
kw
)
def
insert_checkbutton
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'checkbutton'
,
cnf
or
kw
)
def
insert_command
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'command'
,
cnf
or
kw
)
def
insert_radiobutton
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'radiobutton'
,
cnf
or
kw
)
def
insert_separator
(
self
,
index
,
cnf
=
{},
**
kw
):
self
.
insert
(
index
,
'separator'
,
cnf
or
kw
)
def
delete
(
self
,
index1
,
index2
=
None
):
def
delete
(
self
,
index1
,
index2
=
None
):
self
.
tk
.
call
(
self
.
_w
,
'delete'
,
index1
,
index2
)
self
.
tk
.
call
(
self
.
_w
,
'delete'
,
index1
,
index2
)
def
entryconfig
(
self
,
index
,
cnf
=
None
,
**
kw
):
def
entryconfig
(
self
,
index
,
cnf
=
None
,
**
kw
):
...
...
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