Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 18.221.102.0
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib64 /
python2.7 /
Demo /
tkinter /
matt /
[ HOME SHELL ]
Name
Size
Permission
Action
00-HELLO-WORLD.py
724
B
-rw-r--r--
00-HELLO-WORLD.pyc
1.27
KB
-rw-r--r--
00-HELLO-WORLD.pyo
1.27
KB
-rw-r--r--
README
513
B
-rw-r--r--
animation-simple.py
939
B
-rw-r--r--
animation-simple.pyc
1.68
KB
-rw-r--r--
animation-simple.pyo
1.68
KB
-rw-r--r--
animation-w-velocity-ctrl.py
1.17
KB
-rw-r--r--
animation-w-velocity-ctrl.pyc
1.98
KB
-rw-r--r--
animation-w-velocity-ctrl.pyo
1.98
KB
-rw-r--r--
bind-w-mult-calls-p-type.py
1.51
KB
-rw-r--r--
bind-w-mult-calls-p-type.pyc
1.37
KB
-rw-r--r--
bind-w-mult-calls-p-type.pyo
1.37
KB
-rw-r--r--
canvas-demo-simple.py
748
B
-rw-r--r--
canvas-demo-simple.pyc
1.39
KB
-rw-r--r--
canvas-demo-simple.pyo
1.39
KB
-rw-r--r--
canvas-gridding.py
2.22
KB
-rw-r--r--
canvas-gridding.pyc
2.27
KB
-rw-r--r--
canvas-gridding.pyo
2.27
KB
-rw-r--r--
canvas-moving-or-creating.py
2.37
KB
-rw-r--r--
canvas-moving-or-creating.pyc
2.52
KB
-rw-r--r--
canvas-moving-or-creating.pyo
2.52
KB
-rw-r--r--
canvas-moving-w-mouse.py
2.08
KB
-rw-r--r--
canvas-moving-w-mouse.pyc
2.42
KB
-rw-r--r--
canvas-moving-w-mouse.pyo
2.42
KB
-rw-r--r--
canvas-mult-item-sel.py
2.77
KB
-rw-r--r--
canvas-mult-item-sel.pyc
2.74
KB
-rw-r--r--
canvas-mult-item-sel.pyo
2.74
KB
-rw-r--r--
canvas-reading-tag-info.py
1.64
KB
-rw-r--r--
canvas-reading-tag-info.pyc
1.82
KB
-rw-r--r--
canvas-reading-tag-info.pyo
1.82
KB
-rw-r--r--
canvas-w-widget-draw-el.py
1.15
KB
-rw-r--r--
canvas-w-widget-draw-el.pyc
1.47
KB
-rw-r--r--
canvas-w-widget-draw-el.pyo
1.47
KB
-rw-r--r--
canvas-with-scrollbars.py
2.06
KB
-rw-r--r--
canvas-with-scrollbars.pyc
2.31
KB
-rw-r--r--
canvas-with-scrollbars.pyo
2.31
KB
-rw-r--r--
dialog-box.py
2.38
KB
-rw-r--r--
dialog-box.pyc
1.93
KB
-rw-r--r--
dialog-box.pyo
1.93
KB
-rw-r--r--
entry-simple.py
729
B
-rw-r--r--
entry-simple.pyc
1.05
KB
-rw-r--r--
entry-simple.pyo
1.05
KB
-rw-r--r--
entry-with-shared-variable.py
1.71
KB
-rw-r--r--
entry-with-shared-variable.pyc
1.6
KB
-rw-r--r--
entry-with-shared-variable.pyo
1.6
KB
-rw-r--r--
killing-window-w-wm.py
1.26
KB
-rw-r--r--
killing-window-w-wm.pyc
1.46
KB
-rw-r--r--
killing-window-w-wm.pyo
1.46
KB
-rw-r--r--
menu-all-types-of-entries.py
8.9
KB
-rw-r--r--
menu-all-types-of-entries.pyc
4.85
KB
-rw-r--r--
menu-all-types-of-entries.pyo
4.85
KB
-rw-r--r--
menu-simple.py
3.17
KB
-rw-r--r--
menu-simple.pyc
1.92
KB
-rw-r--r--
menu-simple.pyo
1.92
KB
-rw-r--r--
not-what-you-might-think-1.py
675
B
-rw-r--r--
not-what-you-might-think-1.pyc
1.27
KB
-rw-r--r--
not-what-you-might-think-1.pyo
1.27
KB
-rw-r--r--
not-what-you-might-think-2.py
747
B
-rw-r--r--
not-what-you-might-think-2.pyc
1.3
KB
-rw-r--r--
not-what-you-might-think-2.pyo
1.3
KB
-rw-r--r--
packer-and-placer-together.py
1.18
KB
-rw-r--r--
packer-and-placer-together.pyc
1.36
KB
-rw-r--r--
packer-and-placer-together.pyo
1.36
KB
-rw-r--r--
packer-simple.py
819
B
-rw-r--r--
packer-simple.pyc
1.39
KB
-rw-r--r--
packer-simple.pyo
1.39
KB
-rw-r--r--
placer-simple.py
1.05
KB
-rw-r--r--
placer-simple.pyc
1.26
KB
-rw-r--r--
placer-simple.pyo
1.26
KB
-rw-r--r--
pong-demo-1.py
1.51
KB
-rw-r--r--
pong-demo-1.pyc
2.08
KB
-rw-r--r--
pong-demo-1.pyo
2.08
KB
-rw-r--r--
printing-coords-of-items.py
2.34
KB
-rw-r--r--
printing-coords-of-items.pyc
2.52
KB
-rw-r--r--
printing-coords-of-items.pyo
2.52
KB
-rw-r--r--
radiobutton-simple.py
1.96
KB
-rw-r--r--
radiobutton-simple.pyc
1.82
KB
-rw-r--r--
radiobutton-simple.pyo
1.82
KB
-rw-r--r--
rubber-band-box-demo-1.py
2.08
KB
-rw-r--r--
rubber-band-box-demo-1.pyc
2.51
KB
-rw-r--r--
rubber-band-box-demo-1.pyo
2.51
KB
-rw-r--r--
rubber-line-demo-1.py
1.87
KB
-rw-r--r--
rubber-line-demo-1.pyc
2.22
KB
-rw-r--r--
rubber-line-demo-1.pyo
2.22
KB
-rw-r--r--
slider-demo-1.py
1000
B
-rw-r--r--
slider-demo-1.pyc
1.67
KB
-rw-r--r--
slider-demo-1.pyo
1.67
KB
-rw-r--r--
subclass-existing-widgets.py
677
B
-rw-r--r--
subclass-existing-widgets.pyc
1.21
KB
-rw-r--r--
subclass-existing-widgets.pyo
1.21
KB
-rw-r--r--
two-radio-groups.py
3.67
KB
-rw-r--r--
two-radio-groups.pyc
2.14
KB
-rw-r--r--
two-radio-groups.pyo
2.14
KB
-rw-r--r--
window-creation-more.py
1020
B
-rw-r--r--
window-creation-more.pyc
1.68
KB
-rw-r--r--
window-creation-more.pyo
1.68
KB
-rw-r--r--
window-creation-simple.py
815
B
-rw-r--r--
window-creation-simple.pyc
1.6
KB
-rw-r--r--
window-creation-simple.pyo
1.6
KB
-rw-r--r--
window-creation-w-location.py
1.29
KB
-rw-r--r--
window-creation-w-location.pyc
2.05
KB
-rw-r--r--
window-creation-w-location.pyo
2.05
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : menu-all-types-of-entries.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 # +----------------| | # | | # | | # | | # +---------------+ # some miscellaneous callbacks def new_file(): print "opening new file" def open_file(): print "opening OLD file" def print_something(): print "picked a menu item" anchovies = 0 def print_anchovies(): global anchovies anchovies = not anchovies print "anchovies?", anchovies def makeCommandMenu(): # make menu button Command_button = Menubutton(mBar, text='Simple Button Commands', underline=0) Command_button.pack(side=LEFT, padx="2m") # make the pulldown part of the File menu. The parameter passed is the master. # we attach it to the button as a python attribute called "menu" by convention. # hopefully this isn't too confusing... Command_button.menu = Menu(Command_button) # just to be cute, let's disable the undo option: Command_button.menu.add_command(label="Undo") # undo is the 0th entry... Command_button.menu.entryconfig(0, state=DISABLED) Command_button.menu.add_command(label='New...', underline=0, command=new_file) Command_button.menu.add_command(label='Open...', underline=0, command=open_file) Command_button.menu.add_command(label='Different Font', underline=0, font='-*-helvetica-*-r-*-*-*-180-*-*-*-*-*-*', command=print_something) # we can make bitmaps be menu entries too. File format is X11 bitmap. # if you use XV, save it under X11 bitmap format. duh-uh.,.. Command_button.menu.add_command( bitmap="info") #bitmap='@/home/mjc4y/dilbert/project.status.is.doomed.last.panel.bm') # this is just a line Command_button.menu.add('separator') # change the color Command_button.menu.add_command(label='Quit', underline=0, background='red', activebackground='green', command=Command_button.quit) # set up a pointer from the file menubutton back to the file menu Command_button['menu'] = Command_button.menu return Command_button def makeCascadeMenu(): # make menu button Cascade_button = Menubutton(mBar, text='Cascading Menus', underline=0) Cascade_button.pack(side=LEFT, padx="2m") # the primary pulldown Cascade_button.menu = Menu(Cascade_button) # this is the menu that cascades from the primary pulldown.... Cascade_button.menu.choices = Menu(Cascade_button.menu) # ...and this is a menu that cascades from that. Cascade_button.menu.choices.weirdones = Menu(Cascade_button.menu.choices) # then you define the menus from the deepest level on up. Cascade_button.menu.choices.weirdones.add_command(label='avacado') Cascade_button.menu.choices.weirdones.add_command(label='belgian endive') Cascade_button.menu.choices.weirdones.add_command(label='beefaroni') # definition of the menu one level up... Cascade_button.menu.choices.add_command(label='Chocolate') Cascade_button.menu.choices.add_command(label='Vanilla') Cascade_button.menu.choices.add_command(label='TuttiFruiti') Cascade_button.menu.choices.add_command(label='WopBopaLoopBapABopBamBoom') Cascade_button.menu.choices.add_command(label='Rocky Road') Cascade_button.menu.choices.add_command(label='BubbleGum') Cascade_button.menu.choices.add_cascade( label='Weird Flavors', menu=Cascade_button.menu.choices.weirdones) # and finally, the definition for the top level Cascade_button.menu.add_cascade(label='more choices', menu=Cascade_button.menu.choices) Cascade_button['menu'] = Cascade_button.menu return Cascade_button def makeCheckbuttonMenu(): global fred # make menu button Checkbutton_button = Menubutton(mBar, text='Checkbutton Menus', underline=0) Checkbutton_button.pack(side=LEFT, padx='2m') # the primary pulldown Checkbutton_button.menu = Menu(Checkbutton_button) # and all the check buttons. Note that the "variable" "onvalue" and "offvalue" options # are not supported correctly at present. You have to do all your application # work through the calback. Checkbutton_button.menu.add_checkbutton(label='Pepperoni') Checkbutton_button.menu.add_checkbutton(label='Sausage') Checkbutton_button.menu.add_checkbutton(label='Extra Cheese') # so here's a callback Checkbutton_button.menu.add_checkbutton(label='Anchovy', command=print_anchovies) # and start with anchovies selected to be on. Do this by # calling invoke on this menu option. To refer to the "anchovy" menu # entry we need to know it's index. To do this, we use the index method # which takes arguments of several forms: # # argument what it does # ----------------------------------- # a number -- this is useless. # "last" -- last option in the menu # "none" -- used with the activate command. see the man page on menus # "active" -- the currently active menu option. A menu option is made active # with the 'activate' method # "@number" -- where 'number' is an integer and is treated like a y coordinate in pixels # string pattern -- this is the option used below, and attempts to match "labels" using the # rules of Tcl_StringMatch Checkbutton_button.menu.invoke(Checkbutton_button.menu.index('Anchovy')) # set up a pointer from the file menubutton back to the file menu Checkbutton_button['menu'] = Checkbutton_button.menu return Checkbutton_button def makeRadiobuttonMenu(): # make menu button Radiobutton_button = Menubutton(mBar, text='Radiobutton Menus', underline=0) Radiobutton_button.pack(side=LEFT, padx='2m') # the primary pulldown Radiobutton_button.menu = Menu(Radiobutton_button) # and all the Radio buttons. Note that the "variable" "onvalue" and "offvalue" options # are not supported correctly at present. You have to do all your application # work through the calback. Radiobutton_button.menu.add_radiobutton(label='Republican') Radiobutton_button.menu.add_radiobutton(label='Democrat') Radiobutton_button.menu.add_radiobutton(label='Libertarian') Radiobutton_button.menu.add_radiobutton(label='Commie') Radiobutton_button.menu.add_radiobutton(label='Facist') Radiobutton_button.menu.add_radiobutton(label='Labor Party') Radiobutton_button.menu.add_radiobutton(label='Torie') Radiobutton_button.menu.add_radiobutton(label='Independent') Radiobutton_button.menu.add_radiobutton(label='Anarchist') Radiobutton_button.menu.add_radiobutton(label='No Opinion') # set up a pointer from the file menubutton back to the file menu Radiobutton_button['menu'] = Radiobutton_button.menu return Radiobutton_button def makeDisabledMenu(): Dummy_button = Menubutton(mBar, text='Dead Menu', underline=0) Dummy_button.pack(side=LEFT, padx='2m') # this is the standard way of turning off a whole menu Dummy_button["state"] = DISABLED return Dummy_button ################################################# #### Main starts here ... root = Tk() # make a menu bar mBar = Frame(root, relief=RAISED, borderwidth=2) mBar.pack(fill=X) Command_button = makeCommandMenu() Cascade_button = makeCascadeMenu() Checkbutton_button = makeCheckbuttonMenu() Radiobutton_button = makeRadiobuttonMenu() NoMenu = makeDisabledMenu() # finally, install the buttons in the menu bar. # This allows for scanning from one menubutton to the next. mBar.tk_menuBar(Command_button, Cascade_button, Checkbutton_button, Radiobutton_button, NoMenu) root.title('menu demo') root.iconname('menu demo') root.mainloop()
Close