def __init__(self, nowTable, futureTable): self.nowTable = nowTable self.futureTable = futureTable self.nowSQL = mySQLConnection(nowTable) self.futureSQL = mySQLConnection(futureTable) self.mySMS = mySMSConnection()
def __init__(self,nowTable,futureTable): self.nowTable = nowTable self.futureTable = futureTable self.nowSQL = mySQLConnection(nowTable) self.futureSQL = mySQLConnection(futureTable) self.mySMS = mySMSConnection()
def __init__(self, table): self.table=table self.sqlConnection = mySQLConnection(table) #smallest time step (unit) self.unit_delta = 5 self.unit_interval = datetime.timedelta(minutes=self.unit_delta) #the %I forces 12 hour time self.time_format = "%I:%M" #multiples of unit_interval self.default_work_factor = 4 self.default_break_factor = 1 self.default_start_factor = 1 self.default_number_of_items = 2
def __init__(self, table): self.table = table self.sqlConnection = mySQLConnection(table) #smallest time step (unit) self.unit_delta = 5 self.unit_interval = datetime.timedelta(minutes=self.unit_delta) #the %I forces 12 hour time self.time_format = "%I:%M" #multiples of unit_interval self.default_work_factor = 4 self.default_break_factor = 1 self.default_start_factor = 1 self.default_number_of_items = 2
else: self.playAudioFile(self.how_can_i_help_you) def playAudioFile(self, file_name): subprocess.Popen(['mplayer', file_name]).wait() if __name__ == "__main__": print("Started main") her = Her() her.Hello() her.checkup() #uncomment these to play with pomodoro timers #mp = MediumPomo(15,10) #pm = PomoManager(15,10,"small") #uncomment the following line if valid API keys/IDs are in place #o = myMagic("myTasks","myFutureTasks") #interface with SQL connection m = mySQLConnection("myTasks") #interface with tasker t = Tasker("myTasks")
else: self.playAudioFile(self.how_can_i_help_you) def playAudioFile(self, file_name): subprocess.Popen(["mplayer", file_name]).wait() if __name__ == "__main__": print ("Started main") her = Her() her.Hello() her.checkup() # uncomment these to play with pomodoro timers # mp = MediumPomo(15,10) # pm = PomoManager(15,10,"small") # uncomment the following line if valid API keys/IDs are in place # o = myMagic("myTasks","myFutureTasks") # interface with SQL connection m = mySQLConnection("myTasks") # interface with tasker t = Tasker("myTasks")