GRAYBYTE WORDPRESS FILE MANAGER2145

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib64/python2.7/Demo/tkinter/matt/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib64/python2.7/Demo/tkinter/matt//menu-simple.py
from Tkinter import *

# some vocabulary to keep from getting confused. This terminology
# is something I cooked up for this file, but follows the man pages
# pretty closely
#
#
#
#       This is a MENUBUTTON
#       V
# +-------------+
# |             |
#
# +------------++------------++------------+
# |            ||            ||            |
# |  File      ||  Edit      || Options    |   <-------- the MENUBAR
# |            ||            ||            |
# +------------++------------++------------+
# | New...         |
# | Open...        |
# | Print          |
# |                |  <------ This is a MENU. The lines of text in the menu are
# |                |                          MENU ENTRIES
# |                +---------------+
# | Open Files >   | file1         |
# |                | file2         |
# |                | another file  | <------ this cascading part is also a MENU
# +----------------|               |
#                  |               |
#                  |               |
#                  |               |
#                  +---------------+



def new_file():
    print "opening new file"


def open_file():
    print "opening OLD file"


def makeFileMenu():
    # make menu button : "File"
    File_button = Menubutton(mBar, text='File', underline=0)
    File_button.pack(side=LEFT, padx="1m")
    File_button.menu = Menu(File_button)

    # add an item. The first param is a menu entry type,
    # must be one of: "cascade", "checkbutton", "command", "radiobutton", "separator"
    # see menu-demo-2.py for examples of use
    File_button.menu.add_command(label='New...', underline=0,
                                 command=new_file)


    File_button.menu.add_command(label='Open...', underline=0,
                                 command=open_file)

    File_button.menu.add_command(label='Quit', underline=0,
                                 command='exit')

    # set up a pointer from the file menubutton back to the file menu
    File_button['menu'] = File_button.menu

    return File_button



def makeEditMenu():
    Edit_button = Menubutton(mBar, text='Edit', underline=0)
    Edit_button.pack(side=LEFT, padx="1m")
    Edit_button.menu = Menu(Edit_button)

    # just to be cute, let's disable the undo option:
    Edit_button.menu.add('command', label="Undo")
    # Since the tear-off bar is the 0th entry,
    # undo is the 1st entry...
    Edit_button.menu.entryconfig(1, state=DISABLED)

    # and these are just for show. No "command" callbacks attached.
    Edit_button.menu.add_command(label="Cut")
    Edit_button.menu.add_command(label="Copy")
    Edit_button.menu.add_command(label="Paste")

    # set up a pointer from the file menubutton back to the file menu
    Edit_button['menu'] = Edit_button.menu

    return Edit_button


#################################################

#### Main starts here ...
root = Tk()


# make a menu bar
mBar = Frame(root, relief=RAISED, borderwidth=2)
mBar.pack(fill=X)

File_button = makeFileMenu()
Edit_button = makeEditMenu()

# finally, install the buttons in the menu bar.
# This allows for scanning from one menubutton to the next.
mBar.tk_menuBar(File_button, Edit_button)

root.title('menu demo')
root.iconname('packer')

root.mainloop()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 15 2024 08:34:37
root / root
0755
00-HELLO-WORLD.py
0.707 KB
April 19 2020 21:13:39
root / root
0644
00-HELLO-WORLD.pyc
1.269 KB
April 10 2024 04:58:47
root / root
0644
00-HELLO-WORLD.pyo
1.269 KB
April 10 2024 04:58:47
root / root
0644
README
0.501 KB
April 19 2020 21:13:39
root / root
0644
animation-simple.py
0.917 KB
April 19 2020 21:13:39
root / root
0644
animation-simple.pyc
1.68 KB
April 10 2024 04:58:47
root / root
0644
animation-simple.pyo
1.68 KB
April 10 2024 04:58:47
root / root
0644
animation-w-velocity-ctrl.py
1.173 KB
April 19 2020 21:13:39
root / root
0644
animation-w-velocity-ctrl.pyc
1.979 KB
April 10 2024 04:58:47
root / root
0644
animation-w-velocity-ctrl.pyo
1.979 KB
April 10 2024 04:58:47
root / root
0644
bind-w-mult-calls-p-type.py
1.514 KB
April 19 2020 21:13:39
root / root
0644
bind-w-mult-calls-p-type.pyc
1.368 KB
April 10 2024 04:58:47
root / root
0644
bind-w-mult-calls-p-type.pyo
1.368 KB
April 10 2024 04:58:47
root / root
0644
canvas-demo-simple.py
0.73 KB
April 19 2020 21:13:39
root / root
0644
canvas-demo-simple.pyc
1.388 KB
April 10 2024 04:58:47
root / root
0644
canvas-demo-simple.pyo
1.388 KB
April 10 2024 04:58:47
root / root
0644
canvas-gridding.py
2.218 KB
April 19 2020 21:13:39
root / root
0644
canvas-gridding.pyc
2.269 KB
April 10 2024 04:58:47
root / root
0644
canvas-gridding.pyo
2.269 KB
April 10 2024 04:58:47
root / root
0644
canvas-moving-or-creating.py
2.365 KB
April 19 2020 21:13:39
root / root
0644
canvas-moving-or-creating.pyc
2.522 KB
April 10 2024 04:58:47
root / root
0644
canvas-moving-or-creating.pyo
2.522 KB
April 10 2024 04:58:47
root / root
0644
canvas-moving-w-mouse.py
2.076 KB
April 19 2020 21:13:39
root / root
0644
canvas-moving-w-mouse.pyc
2.415 KB
April 10 2024 04:58:47
root / root
0644
canvas-moving-w-mouse.pyo
2.415 KB
April 10 2024 04:58:47
root / root
0644
canvas-mult-item-sel.py
2.774 KB
April 19 2020 21:13:39
root / root
0644
canvas-mult-item-sel.pyc
2.74 KB
April 10 2024 04:58:47
root / root
0644
canvas-mult-item-sel.pyo
2.74 KB
April 10 2024 04:58:47
root / root
0644
canvas-reading-tag-info.py
1.639 KB
April 19 2020 21:13:39
root / root
0644
canvas-reading-tag-info.pyc
1.816 KB
April 10 2024 04:58:47
root / root
0644
canvas-reading-tag-info.pyo
1.816 KB
April 10 2024 04:58:47
root / root
0644
canvas-w-widget-draw-el.py
1.15 KB
April 19 2020 21:13:39
root / root
0644
canvas-w-widget-draw-el.pyc
1.47 KB
April 10 2024 04:58:47
root / root
0644
canvas-w-widget-draw-el.pyo
1.47 KB
April 10 2024 04:58:47
root / root
0644
canvas-with-scrollbars.py
2.061 KB
April 19 2020 21:13:39
root / root
0644
canvas-with-scrollbars.pyc
2.308 KB
April 10 2024 04:58:47
root / root
0644
canvas-with-scrollbars.pyo
2.308 KB
April 10 2024 04:58:47
root / root
0644
dialog-box.py
2.383 KB
April 19 2020 21:13:39
root / root
0644
dialog-box.pyc
1.932 KB
April 10 2024 04:58:47
root / root
0644
dialog-box.pyo
1.932 KB
April 10 2024 04:58:47
root / root
0644
entry-simple.py
0.712 KB
April 19 2020 21:13:39
root / root
0644
entry-simple.pyc
1.051 KB
April 10 2024 04:58:47
root / root
0644
entry-simple.pyo
1.051 KB
April 10 2024 04:58:47
root / root
0644
entry-with-shared-variable.py
1.706 KB
April 19 2020 21:13:39
root / root
0644
entry-with-shared-variable.pyc
1.602 KB
April 10 2024 04:58:47
root / root
0644
entry-with-shared-variable.pyo
1.602 KB
April 10 2024 04:58:47
root / root
0644
killing-window-w-wm.py
1.265 KB
April 19 2020 21:13:39
root / root
0644
killing-window-w-wm.pyc
1.458 KB
April 10 2024 04:58:47
root / root
0644
killing-window-w-wm.pyo
1.458 KB
April 10 2024 04:58:47
root / root
0644
menu-all-types-of-entries.py
8.896 KB
April 19 2020 21:13:39
root / root
0644
menu-all-types-of-entries.pyc
4.854 KB
April 10 2024 04:58:47
root / root
0644
menu-all-types-of-entries.pyo
4.854 KB
April 10 2024 04:58:47
root / root
0644
menu-simple.py
3.175 KB
April 19 2020 21:13:39
root / root
0644
menu-simple.pyc
1.915 KB
April 10 2024 04:58:47
root / root
0644
menu-simple.pyo
1.915 KB
April 10 2024 04:58:47
root / root
0644
not-what-you-might-think-1.py
0.659 KB
April 19 2020 21:13:39
root / root
0644
not-what-you-might-think-1.pyc
1.27 KB
April 10 2024 04:58:47
root / root
0644
not-what-you-might-think-1.pyo
1.27 KB
April 10 2024 04:58:47
root / root
0644
not-what-you-might-think-2.py
0.729 KB
April 19 2020 21:13:39
root / root
0644
not-what-you-might-think-2.pyc
1.304 KB
April 10 2024 04:58:47
root / root
0644
not-what-you-might-think-2.pyo
1.304 KB
April 10 2024 04:58:47
root / root
0644
packer-and-placer-together.py
1.181 KB
April 19 2020 21:13:39
root / root
0644
packer-and-placer-together.pyc
1.355 KB
April 10 2024 04:58:47
root / root
0644
packer-and-placer-together.pyo
1.355 KB
April 10 2024 04:58:47
root / root
0644
packer-simple.py
0.8 KB
April 19 2020 21:13:39
root / root
0644
packer-simple.pyc
1.391 KB
April 10 2024 04:58:47
root / root
0644
packer-simple.pyo
1.391 KB
April 10 2024 04:58:47
root / root
0644
placer-simple.py
1.053 KB
April 19 2020 21:13:39
root / root
0644
placer-simple.pyc
1.263 KB
April 10 2024 04:58:47
root / root
0644
placer-simple.pyo
1.263 KB
April 10 2024 04:58:47
root / root
0644
pong-demo-1.py
1.513 KB
April 19 2020 21:13:39
root / root
0644
pong-demo-1.pyc
2.078 KB
April 10 2024 04:58:47
root / root
0644
pong-demo-1.pyo
2.078 KB
April 10 2024 04:58:47
root / root
0644
printing-coords-of-items.py
2.344 KB
April 19 2020 21:13:39
root / root
0644
printing-coords-of-items.pyc
2.521 KB
April 10 2024 04:58:47
root / root
0644
printing-coords-of-items.pyo
2.521 KB
April 10 2024 04:58:47
root / root
0644
radiobutton-simple.py
1.964 KB
April 19 2020 21:13:39
root / root
0644
radiobutton-simple.pyc
1.82 KB
April 10 2024 04:58:47
root / root
0644
radiobutton-simple.pyo
1.82 KB
April 10 2024 04:58:47
root / root
0644
rubber-band-box-demo-1.py
2.084 KB
April 19 2020 21:13:39
root / root
0644
rubber-band-box-demo-1.pyc
2.509 KB
April 10 2024 04:58:47
root / root
0644
rubber-band-box-demo-1.pyo
2.509 KB
April 10 2024 04:58:47
root / root
0644
rubber-line-demo-1.py
1.874 KB
April 19 2020 21:13:39
root / root
0644
rubber-line-demo-1.pyc
2.22 KB
April 10 2024 04:58:47
root / root
0644
rubber-line-demo-1.pyo
2.22 KB
April 10 2024 04:58:47
root / root
0644
slider-demo-1.py
0.977 KB
April 19 2020 21:13:39
root / root
0644
slider-demo-1.pyc
1.672 KB
April 10 2024 04:58:47
root / root
0644
slider-demo-1.pyo
1.672 KB
April 10 2024 04:58:47
root / root
0644
subclass-existing-widgets.py
0.661 KB
April 19 2020 21:13:39
root / root
0644
subclass-existing-widgets.pyc
1.205 KB
April 10 2024 04:58:47
root / root
0644
subclass-existing-widgets.pyo
1.205 KB
April 10 2024 04:58:47
root / root
0644
two-radio-groups.py
3.67 KB
April 19 2020 21:13:39
root / root
0644
two-radio-groups.pyc
2.141 KB
April 10 2024 04:58:47
root / root
0644
two-radio-groups.pyo
2.141 KB
April 10 2024 04:58:47
root / root
0644
window-creation-more.py
0.996 KB
April 19 2020 21:13:39
root / root
0644
window-creation-more.pyc
1.679 KB
April 10 2024 04:58:47
root / root
0644
window-creation-more.pyo
1.679 KB
April 10 2024 04:58:47
root / root
0644
window-creation-simple.py
0.796 KB
April 19 2020 21:13:39
root / root
0644
window-creation-simple.pyc
1.604 KB
April 10 2024 04:58:47
root / root
0644
window-creation-simple.pyo
1.604 KB
April 10 2024 04:58:47
root / root
0644
window-creation-w-location.py
1.294 KB
April 19 2020 21:13:39
root / root
0644
window-creation-w-location.pyc
2.051 KB
April 10 2024 04:58:47
root / root
0644
window-creation-w-location.pyo
2.051 KB
April 10 2024 04:58:47
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF