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.224.30.113
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 /
share /
doc /
newt-python-0.52.15 /
[ HOME SHELL ]
Name
Size
Permission
Action
peanuts.py
1.11
KB
-rw-r--r--
popcorn.py
2.9
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : peanuts.py
#!/usr/bin/python # Demo program to show use of python-newt module from snack import * screen = SnackScreen() li = Listbox(height = 3, width = 20, returnExit = 1) li.append("First", 1) li.append("Second", 2) li.append("Third", 3) rb = RadioBar(screen, (("This", "this", 0), ("Default", "default", 1), ("That", "that", 0))) bb = ButtonBar(screen, (("Ok", "ok"), ("Cancel", "cancel"))) ct = CheckboxTree(height = 5, scroll = 1) ct.append("Colors") ct.addItem("Red", (0, snackArgs['append'])) ct.addItem("Yellow", (0, snackArgs['append'])) ct.addItem("Blue", (0, snackArgs['append'])) ct.append("Flavors") ct.append("Numbers") ct.addItem("1", (2, snackArgs['append'])) ct.addItem("2", (2, snackArgs['append'])) ct.addItem("3", (2, snackArgs['append'])) ct.append("Names") ct.append("Months") ct.append("Events") g = GridForm(screen, "My Test", 1, 4) g.add(li, 0, 0) g.add(rb, 0, 1, (0, 1, 0, 1)) g.add(ct, 0, 2) g.add(bb, 0, 3, growx = 1) result = g.runOnce() screen.finish() print result print "listbox:", li.current() print "rb:", rb.getSelection() print "bb:", bb.buttonPressed(result) print "checkboxtree:", ct.getSelection()
Close