adding function key and actions for cropping

This commit is contained in:
ben-caldwell
2018-01-06 15:55:11 +13:00
parent bc8707f47c
commit 7519b8e1bd
11 changed files with 390 additions and 307 deletions

View File

@@ -7,10 +7,11 @@ class MessageHandler(object):
self.current_message = [None, None, None]
self.number_of_messages = 0
self.logger = self.setup_logging()
self.function_on = False
def setup_logging(self):
logger = logging.getLogger('logfile')
current_dir = data_centre.data.get_the_current_dir_path()
current_dir = data_centre.data.get_the_current_dir_path() #TODO : this needs to be improved
hdlr = logging.FileHandler(current_dir + 'logfile.log')
formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
hdlr.setFormatter(formatter)