#Filename:        myModule1
#Description:     Creates the basic Tkinter programs
#Author:          Rajat Dudeja
#Date:            16.08.2008


from Tkinter import *
#GUI class
class myAppGUI:
    def __init__(self, master):
        
        #Start Test Button
        self.bStartTest = Button( master, \
                                  text = "Start Test", \
                                  command = self.hStartTest, \
                                 )
        self.bStartTest.config( justify = CENTER, \
                                padx = 20, \
                                width = 10,
                               #pady= 5, \
                                relief = RAISED
                              )
        
        self.bStartTest.grid( row = 10, \
                              column = 2, \
                              columnspan = 1, \
                              sticky = EW)
        
        #Commit Results Button
        self.bCommitResults = Button( master, \
                                      text = "Commit Results", \
                                      command = self.hCommitResults \
                                    )
        self.bCommitResults.config( justify = CENTER, \
                                    padx = 20, \
                                    #pady= 5, \
                                    width = 10, \
                                    relief = RAISED
                                  )
        self.bCommitResults.grid( row = 10, \
                                  column = 5, \
                                  columnspan = 1, \
                                  sticky = EW)
        #Exit Button
        self.bExit = Button( master, \
                             text = "Exit", \
                             command = master.quit )
        self.bExit.config( justify = CENTER, \
                           padx = 20, \
                           width= 10, \
                           relief = RAISED, \
                         )
        self.bExit.grid( row = 10, \
                         column = 8, \
                         columnspan = 1, \
                         sticky = EW)
        
        #Labels and Drop down menus
        
        #Label 1
        self.lAnalysisLib = Label( master, \
                                   text = "Analysis Library:", \
                                   justify = RIGHT)
        self.lAnalysisLib.grid(row = 0)
        
        #Label 2                   
        self.lRefAnalysisLibVer = Label( master, \
                                      text = "Reference Analysis Libary Version:", \
                                      justify = LEFT)
        self.lRefAnalysisLibVer.config( wraplength = 100 )
        self.lRefAnalysisLibVer.grid(row = 5)
                                   
        
        
    def hStartTest(self):
        print 'Starting Test...'
        
    def hCommitResults(self):
        print 'Commiting to SVN...'

#End of myAppGUI Class    
    
# Main Program
myRoot = Tk()
myRoot.title("Test Automation")
myRoot.minsize(800, 400)
myAppGUIObject = myAppGUI(myRoot)
myRoot.mainloop()