initialize mark time if set in config
This commit is contained in:
parent
ec8eb3b140
commit
daf1a95050
@ -6,10 +6,15 @@ from datetime import *
|
|||||||
from AboutWindow import AboutWindow
|
from AboutWindow import AboutWindow
|
||||||
from Config import *
|
from Config import *
|
||||||
|
|
||||||
|
DT_FORMAT = '%Y-%m-%d %H:%M:%S'
|
||||||
|
|
||||||
class Window:
|
class Window:
|
||||||
def __init__(self, progName, ds, config):
|
def __init__(self, progName, ds, config):
|
||||||
self.ds = ds
|
self.ds = ds
|
||||||
self.config = config
|
self.config = config
|
||||||
|
self.mark = None
|
||||||
|
if self.config.get('mark') is not None:
|
||||||
|
self.mark = datetime.strptime(self.config.get('mark'), DT_FORMAT)
|
||||||
self.shown_projects = []
|
self.shown_projects = []
|
||||||
self.taskStart = datetime.now()
|
self.taskStart = datetime.now()
|
||||||
self.monday = \
|
self.monday = \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user