-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchromeExtensionGUI.py
More file actions
63 lines (49 loc) · 1.82 KB
/
chromeExtensionGUI.py
File metadata and controls
63 lines (49 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python
#Author: Mike R
#Date: 4/29/2016
#Purpose: To be able to download any extension the user desires and analyze the results
from Tkinter import *
import Tkinter
import tkMessageBox, os
def donothing():
filewin = Toplevel(root)
button = Button(filewin, text="Do nothing button")
button.pack()
def helloCallBack():
#validating URL
dataTP="python googTest.py " + E1.get()
os.system(dataTP)
#check to see if invalid Add-On
root = Tk()
root.wm_title("Panic At The WebStore!")
menubar = Menu(root)
filemenu = Menu(menubar, tearoff=0)
filemenu.add_command(label="New", command=donothing)
filemenu.add_command(label="Open", command=donothing)
filemenu.add_command(label="Save", command=donothing)
filemenu.add_command(label="Save as...", command=donothing)
filemenu.add_command(label="Close", command=donothing)
filemenu.add_separator()
filemenu.add_command(label="Exit", command=root.quit)
menubar.add_cascade(label="File", menu=filemenu)
editmenu = Menu(menubar, tearoff=0)
editmenu.add_command(label="Undo", command=donothing)
editmenu.add_separator()
editmenu.add_command(label="Cut", command=donothing)
editmenu.add_command(label="Copy", command=donothing)
editmenu.add_command(label="Paste", command=donothing)
editmenu.add_command(label="Delete", command=donothing)
editmenu.add_command(label="Select All", command=donothing)
menubar.add_cascade(label="Edit", menu=editmenu)
helpmenu = Menu(menubar, tearoff=0)
helpmenu.add_command(label="Help Index", command=donothing)
helpmenu.add_command(label="About...", command=donothing)
menubar.add_cascade(label="Help", menu=helpmenu)
root.config(menu=menubar)
L1 = Label(root, text="Chrome GUID")
L1.pack( side = LEFT)
E1 = Entry(root, bd =5)
B = Tkinter.Button(root, text ="Submit", command = helloCallBack)
B.pack(side = RIGHT)
E1.pack(side = RIGHT)
root.mainloop()