Example #1
0
 def __init__(self, q_in, q_out):
     #Instantiate logger object
     loggerObj = Logger(self.__class__.__name__)
     self.logger = loggerObj.getLoggerInstance()
     
     #Load in queues
     self.q_in = q_in
     self.q_out = q_out
     
     self.logger.info("creating the gui")
     self.gui = GadoGui(q_in, q_out)
     Thread.__init__(self)
Example #2
0
class GuiThread(Thread):
    def __init__(self, q_in, q_out):
        self.q_in = q_in
        self.q_out = q_out
        print "GuiThread\tcreating the gui"
        self.gui = GadoGui(q_in, q_out)
        Thread.__init__(self)

    def run(self):
        print "GuiThread\tloading GUI elements"
        self.gui.load()
        print "GuiThread\tcalling finished tk.mainloop"
        # self.gui.mainloop()
        sys.exit()
Example #3
0
class GuiThread(Thread):
    
    def __init__(self, q_in, q_out):
        #Instantiate logger object
        loggerObj = Logger(self.__class__.__name__)
        self.logger = loggerObj.getLoggerInstance()
        
        #Load in queues
        self.q_in = q_in
        self.q_out = q_out
        
        self.logger.info("creating the gui")
        self.gui = GadoGui(q_in, q_out)
        Thread.__init__(self)
        
    def run(self):
        self.logger.info("loading GUI elements")
        self.gui.load()
        self.logger.debug("calling finished tk.mainloop")
        
        #Once the thread is done loading, exit
        sys.exit()
Example #4
0
 def __init__(self, q_in, q_out):
     self.q_in = q_in
     self.q_out = q_out
     print "GuiThread\tcreating the gui"
     self.gui = GadoGui(q_in, q_out)
     Thread.__init__(self)