add status line to CmdWindow
This commit is contained in:
1 parent
987145e530
commit
4d641af494
2 files changed
+21
-10
No files matched your search
@@ -38,7 +38,12 @@ def main(argv):
|
||||
ds = DataStore(timedbfile)
|
||||
|
||||
while True:
|
||||
cmdline = doCmdWindow()
|
||||
status = ''
|
||||
ct = ds.getCurrentTask()
|
||||
if ct is not None:
|
||||
status = 'Current Task: ' + ds.getTaskByID(ct.taskid).name
|
||||
cw = CmdWindow(status)
|
||||
cmdline = cw.main()
|
||||
if cmdline.strip() == '':
|
||||
break
|
||||
cmd = Command(cmdline)
|
||||
@@ -52,10 +57,6 @@ def main(argv):
|
||||
else:
|
||||
print "Unknown return type '%s'" % type(res).__name__
|
||||
|
||||
def doCmdWindow():
|
||||
c = CmdWindow()
|
||||
return c.main()
|
||||
|
||||
def processStart(cmd, store):
|
||||
processOut(cmd, store)
|
||||
task = store.getTaskByName(cmd.argstr)
|
||||
|
||||
Reference in new issue
Block a user