def main(self):
     """
     Run main application window
     """ 
     mswitch.subscribe(self.iq, self.isq)
     
     self.tick()
Exemplo n.º 2
0
 def __init__(self, help_url, ticks_seconds):
     self.ticks_seconds=ticks_seconds
     
     path=os.path.dirname(__file__)
     self.glade_file=path+"/ui.glade"       
     
     self.help_url=help_url
     self.iq=Queue()
     self.isq=Queue()
     
     mswitch.subscribe(self.iq, self.isq)
     self.tick_count=0
     self.window=None
     
     self.data={}
Exemplo n.º 3
0
    def __init__(self, time_base):
        """
        @param time_base: in milliseconds
        @param glade_file: absolute file path to the ui glade XML file
        @param ui_window_class: class object for the ui window 
        """
        self.time_base=time_base 
        self.ticks_second=1000/time_base

        self.iq=Queue()
        self.isq=Queue()
        mswitch.subscribe("__main__", self.iq, self.isq)

        self.tick_count=0
        self.sec_count=0
        self.min_count=0
        self.hour_count=0
        self.day_count=0

        self.window=None
        
        self.interests={}
        self.responsesInterests=[]