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
e7e8d1e1
Kaydet (Commit)
e7e8d1e1
authored
Tem 13, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change remote operation -- display the widget tree in a listbox and
open relevant dialogs on double click
üst
3284abe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
AttrDialog.py
Demo/tkinter/guido/AttrDialog.py
+22
-4
No files found.
Demo/tkinter/guido/AttrDialog.py
Dosyayı görüntüle @
e7e8d1e1
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# -- totally static, though different between PackDialog and WidgetDialog
# -- totally static, though different between PackDialog and WidgetDialog
# (but even that could be unified)
# (but even that could be unified)
from
Tkinter
import
*
from
Tkinter
import
*
class
Option
:
class
Option
:
...
@@ -406,9 +405,8 @@ def test():
...
@@ -406,9 +405,8 @@ def test():
import
sys
import
sys
root
=
Tk
()
root
=
Tk
()
root
.
minsize
(
1
,
1
)
root
.
minsize
(
1
,
1
)
if
sys
.
argv
[
2
:]:
if
sys
.
argv
[
1
:]:
pd
=
RemotePackDialog
(
root
,
sys
.
argv
[
1
],
sys
.
argv
[
2
])
remotetest
(
root
,
sys
.
argv
[
1
])
wd
=
RemoteWidgetDialog
(
root
,
sys
.
argv
[
1
],
sys
.
argv
[
2
])
else
:
else
:
frame
=
Frame
(
root
,
{
'name'
:
'frame'
,
frame
=
Frame
(
root
,
{
'name'
:
'frame'
,
Pack
:
{
'expand'
:
1
,
'fill'
:
'both'
},
Pack
:
{
'expand'
:
1
,
'fill'
:
'both'
},
...
@@ -426,4 +424,24 @@ def test():
...
@@ -426,4 +424,24 @@ def test():
cwd
=
WidgetDialog
(
canvas
)
cwd
=
WidgetDialog
(
canvas
)
root
.
mainloop
()
root
.
mainloop
()
def
remotetest
(
root
,
app
):
from
listtree
import
listtree
list
=
listtree
(
root
,
app
)
list
.
bind
(
'<Any-Double-1>'
,
opendialogs
)
list
.
app
=
app
# Pass it on to handler
def
opendialogs
(
e
):
import
string
list
=
e
.
widget
sel
=
list
.
curselection
()
for
i
in
sel
:
item
=
list
.
get
(
i
)
widget
=
string
.
split
(
item
)[
0
]
RemoteWidgetDialog
(
list
,
list
.
app
,
widget
)
if
widget
==
'.'
:
continue
try
:
RemotePackDialog
(
list
,
list
.
app
,
widget
)
except
TclError
,
msg
:
print
msg
test
()
test
()
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