added create project and task method stubs

This commit is contained in:
Sem van der Hoeven
2020-08-23 13:48:40 +02:00
parent cd53936eee
commit 0aa2b12d23
2 changed files with 8 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ class Task:
self.desc = desc
# TODO maybe get rid of this enum and just use a number
class Status(Enum):
WORKING = 0
IDLE = 1
@@ -89,7 +90,6 @@ class Status(Enum):
print("next is {}".format(Status(v)))
return Status(v)
# TODO maybe get rid of this enum and just use a number
class SelectedWindow(Enum):
PROJECTS = 1
TASKS = 2
@@ -108,6 +108,12 @@ def load():
temp_project.addTask(Task("Example task", "This is an example of a task description.\nIt can be used to provide some extra information about the task."))
return [temp_project]
def create_project(projects: list):
pass
def create_task(project):
pass
def get_x_pos_center(text: str):
return curses.COLS // 2 - len(text) // 2

View File

@@ -21,4 +21,5 @@ It gives a neat presentation of all your projects, which you can assign tasks to
Download the file from the [releases page](https://github.com/SemvdH/terminal-project-management/releases) and run `python console-gui.py`
# Usage
https://github.com/lukesampson/scoop/wiki/Creating-an-app-manifest