ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/Active_prgs/Nino.py
Revision: 8
Committed: Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges
Content type: text/x-python
File size: 1342 byte(s)
Log Message:
Initial Import

File Contents

# User Rev Content
1 ninoborges 8 ## A simple chooser list of programs that I use all the time.
2     #Eborges
3     #07.26.02
4    
5     from Tkinter import *
6     import tkFileDialog, shutil, os
7    
8     def GUI(Win):
9     MainMenu = Menu(Win)
10     Win.config(menu=MainMenu)
11     FileMenu = Menu(MainMenu)
12     MainMenu.add_cascade(label="main", menu=FileMenu)
13     FileMenu.add_command(label="Mp3_Move",command=Mp3_Move)
14     FileMenu.add_command(label="G2G",command=G2G)
15     FileMenu.add_command(label="Vacation Days",command=Vacation)
16     FileMenu.add_command(label="NS_MOTD",command=NS_MOTD)
17     FileMenu.add_command(label-"PyBlade",command=pyBlade)
18     Win.mainloop()
19    
20     def Mp3_Move():
21     Mp3File = tkFileDialog.askopenfilename(parent=Win,title = "Downloaded mp3's",initialdir = 'c:\\Program Files\\BearShare\\Downloads')
22     shutil.copy2(Mp3File,'c:\\Documents and Settings\\eaborges\\My Documents\\Colection\\mp3s')
23    
24     def G2G():
25     os.system('c:\\Python22\\ninocode\\Active_prgs\COM\G2G.py')
26    
27     def Vacation():
28     #os.system('c:\\Python21\\ninocode\\Active_prgs\\Vacation_days.pyw')
29     os.system('Start c:\\Python22\\ninocode\\Active_prgs\\Vacation_days.pyw')
30    
31     def NS_MOTD():
32     os.system('Start c:\\Python22\\ninocode\\Active_prgs\\NS_MOTD_server.pyw Sara')
33    
34     def pyBlade():
35     import PyBlade
36     PyBlade.Main()
37    
38     if __name__ == '__main__':
39     Win = Tk()
40     GUI(Win)