-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·33 lines (27 loc) · 1016 Bytes
/
setup.py
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
#!/usr/bin/python
import sys, os, time
class Setup:
def __init__(self):
if len(sys.argv) != 2:
print "Usage: ./setup.py install"
return
if sys.argv[1] == "install":
print "Welcome to Mohib's Tkinter Dash! Installling..."
time.sleep(.5)
#self.packages()
print "Download completed!"
self.ask()
def packages(self):
os.system("sudo chmod a+x Scripts/*.py")
os.system("sudo apt-get update")
os.system("sudo apt-get install python-imaging-tk")
os.system("sudo apt-get install imagemagick")
def ask(self):
orientation = raw_input("Orientation? v or h. \n")
padx = raw_input("Padding of x? Default is 6. \n")
pady = raw_input("Padding of y? Default is 25.\n")
file = open("Scripts/setups.txt", "w")
file.write(orientation + "\n" + padx + "\n" + pady + "\n")
print "Orientation and padding saved."
file.close()
Setup()