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
bf4d8f9d
Kaydet (Commit)
bf4d8f9d
authored
Eyl 01, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added OptionMenu class (tk_optionMenu interface)
üst
cf9e27c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
Tkinter.py
Lib/lib-tk/Tkinter.py
+10
-2
Tkinter.py
Lib/tkinter/Tkinter.py
+10
-2
No files found.
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
bf4d8f9d
...
@@ -69,6 +69,7 @@ SEL_LAST='sel.last'
...
@@ -69,6 +69,7 @@ SEL_LAST='sel.last'
END
=
'end'
END
=
'end'
INSERT
=
'insert'
INSERT
=
'insert'
CURRENT
=
'current'
CURRENT
=
'current'
ANCHOR
=
'anchor'
def
_flatten
(
tuple
):
def
_flatten
(
tuple
):
res
=
()
res
=
()
...
@@ -739,8 +740,7 @@ class Widget(Misc, Pack, Place):
...
@@ -739,8 +740,7 @@ class Widget(Misc, Pack, Place):
cnf
=
_cnfmerge
((
cnf
,
kw
))
cnf
=
_cnfmerge
((
cnf
,
kw
))
self
.
widgetName
=
widgetName
self
.
widgetName
=
widgetName
Widget
.
_setup
(
self
,
master
,
cnf
)
Widget
.
_setup
(
self
,
master
,
cnf
)
extra1
=
()
apply
(
self
.
tk
.
call
,
(
widgetName
,
self
.
_w
)
+
extra
)
apply
(
self
.
tk
.
call
,
extra1
+
(
widgetName
,
self
.
_w
)
+
extra
)
if
cnf
:
if
cnf
:
Widget
.
config
(
self
,
cnf
)
Widget
.
config
(
self
,
cnf
)
def
config
(
self
,
cnf
=
None
,
**
kw
):
def
config
(
self
,
cnf
=
None
,
**
kw
):
...
@@ -1288,6 +1288,14 @@ class Text(Widget):
...
@@ -1288,6 +1288,14 @@ class Text(Widget):
def
yview_pickplace
(
self
,
*
what
):
def
yview_pickplace
(
self
,
*
what
):
apply
(
self
.
tk
.
call
,
(
self
.
_w
,
'yview'
,
'-pickplace'
)
+
what
)
apply
(
self
.
tk
.
call
,
(
self
.
_w
,
'yview'
,
'-pickplace'
)
+
what
)
class
OptionMenu
(
Widget
):
def
__init__
(
self
,
master
,
variable
,
value
,
*
values
):
self
.
widgetName
=
'tk_optionMenu'
Widget
.
_setup
(
self
,
master
,
{})
self
.
menuname
=
apply
(
self
.
tk
.
call
,
(
self
.
widgetName
,
self
.
_w
,
variable
,
value
)
+
values
)
class
Image
:
class
Image
:
def
__init__
(
self
,
imgtype
,
name
=
None
,
cnf
=
{},
**
kw
):
def
__init__
(
self
,
imgtype
,
name
=
None
,
cnf
=
{},
**
kw
):
self
.
name
=
None
self
.
name
=
None
...
...
Lib/tkinter/Tkinter.py
Dosyayı görüntüle @
bf4d8f9d
...
@@ -69,6 +69,7 @@ SEL_LAST='sel.last'
...
@@ -69,6 +69,7 @@ SEL_LAST='sel.last'
END
=
'end'
END
=
'end'
INSERT
=
'insert'
INSERT
=
'insert'
CURRENT
=
'current'
CURRENT
=
'current'
ANCHOR
=
'anchor'
def
_flatten
(
tuple
):
def
_flatten
(
tuple
):
res
=
()
res
=
()
...
@@ -739,8 +740,7 @@ class Widget(Misc, Pack, Place):
...
@@ -739,8 +740,7 @@ class Widget(Misc, Pack, Place):
cnf
=
_cnfmerge
((
cnf
,
kw
))
cnf
=
_cnfmerge
((
cnf
,
kw
))
self
.
widgetName
=
widgetName
self
.
widgetName
=
widgetName
Widget
.
_setup
(
self
,
master
,
cnf
)
Widget
.
_setup
(
self
,
master
,
cnf
)
extra1
=
()
apply
(
self
.
tk
.
call
,
(
widgetName
,
self
.
_w
)
+
extra
)
apply
(
self
.
tk
.
call
,
extra1
+
(
widgetName
,
self
.
_w
)
+
extra
)
if
cnf
:
if
cnf
:
Widget
.
config
(
self
,
cnf
)
Widget
.
config
(
self
,
cnf
)
def
config
(
self
,
cnf
=
None
,
**
kw
):
def
config
(
self
,
cnf
=
None
,
**
kw
):
...
@@ -1288,6 +1288,14 @@ class Text(Widget):
...
@@ -1288,6 +1288,14 @@ class Text(Widget):
def
yview_pickplace
(
self
,
*
what
):
def
yview_pickplace
(
self
,
*
what
):
apply
(
self
.
tk
.
call
,
(
self
.
_w
,
'yview'
,
'-pickplace'
)
+
what
)
apply
(
self
.
tk
.
call
,
(
self
.
_w
,
'yview'
,
'-pickplace'
)
+
what
)
class
OptionMenu
(
Widget
):
def
__init__
(
self
,
master
,
variable
,
value
,
*
values
):
self
.
widgetName
=
'tk_optionMenu'
Widget
.
_setup
(
self
,
master
,
{})
self
.
menuname
=
apply
(
self
.
tk
.
call
,
(
self
.
widgetName
,
self
.
_w
,
variable
,
value
)
+
values
)
class
Image
:
class
Image
:
def
__init__
(
self
,
imgtype
,
name
=
None
,
cnf
=
{},
**
kw
):
def
__init__
(
self
,
imgtype
,
name
=
None
,
cnf
=
{},
**
kw
):
self
.
name
=
None
self
.
name
=
None
...
...
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