added create project and task method stubs
This commit is contained in:
@@ -67,6 +67,7 @@ class Task:
|
|||||||
self.desc = desc
|
self.desc = desc
|
||||||
|
|
||||||
|
|
||||||
|
# TODO maybe get rid of this enum and just use a number
|
||||||
class Status(Enum):
|
class Status(Enum):
|
||||||
WORKING = 0
|
WORKING = 0
|
||||||
IDLE = 1
|
IDLE = 1
|
||||||
@@ -89,7 +90,6 @@ class Status(Enum):
|
|||||||
print("next is {}".format(Status(v)))
|
print("next is {}".format(Status(v)))
|
||||||
return Status(v)
|
return Status(v)
|
||||||
|
|
||||||
# TODO maybe get rid of this enum and just use a number
|
|
||||||
class SelectedWindow(Enum):
|
class SelectedWindow(Enum):
|
||||||
PROJECTS = 1
|
PROJECTS = 1
|
||||||
TASKS = 2
|
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."))
|
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]
|
return [temp_project]
|
||||||
|
|
||||||
|
def create_project(projects: list):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def create_task(project):
|
||||||
|
pass
|
||||||
|
|
||||||
def get_x_pos_center(text: str):
|
def get_x_pos_center(text: str):
|
||||||
return curses.COLS // 2 - len(text) // 2
|
return curses.COLS // 2 - len(text) // 2
|
||||||
|
|
||||||
|
|||||||
@@ -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`
|
Download the file from the [releases page](https://github.com/SemvdH/terminal-project-management/releases) and run `python console-gui.py`
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
https://github.com/lukesampson/scoop/wiki/Creating-an-app-manifest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user