Beispiel #1
0
    def __init__(self, time_base=DEFAULT_TIME_BASE):
        """
        @param time_base: in milliseconds
        """
        self.time_base=time_base 
        self.ticks_second=time_base/1000

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

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

        self.interests={}
        self.responsesInterests=[]
Beispiel #2
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 = []
Beispiel #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 = []