-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathairgui.py
More file actions
51 lines (36 loc) · 1.09 KB
/
airgui.py
File metadata and controls
51 lines (36 loc) · 1.09 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
#!/usr/bin/python
from Tkinter import *
import tkMessageBox
import Tkinter
import subprocess
top = Tkinter.Tk()
# Code to add widgets will go here...
#listbox
#option = Listbox(top)
#option.insert(1, "Andromedae")
#option.insert(2, "Pavonis")
#option.insert(3, "Arrakis")
#option.insert(4, "Librae")
#option.insert(5, "Sirius")
#option.pack()
v = IntVar()
Radiobutton(top, text="Andromedae", variable=v, value=1).pack(anchor=W)
Radiobutton(top, text="Pavonis", variable=v, value=2).pack(anchor=W)
Radiobutton(top, text="Arrakis", variable=v, value=3).pack(anchor=W)
Radiobutton(top, text="Librae", variable=v, value=4).pack(anchor=W)
Radiobutton(top, text="Sirius", variable=v, value=5).pack(anchor=W)
#onoff
def turnOn():
subprocess.call(["skype"])
on = Tkinter.Button(top, text ="On", command = turnOn)
on.pack()
def turnOff():
subprocess.call(["pidgin"])
off = Tkinter.Button(top, text="Off", command = turnOff)
off.pack()
#onButton = Tkinter.Button(top, text="On") #command = makeCommandHere
#onButton.Pack()
#offButton = Tkinter.Button(top, text="Off")
#offButton.Pack()
#end
top.mainloop()