cleanup
This commit is contained in:
parent
555397452c
commit
220076f38d
@ -1,2 +0,0 @@
|
|||||||
def hello() -> None:
|
|
||||||
print("Hello from tt!")
|
|
@ -181,13 +181,11 @@ class TT(App):
|
|||||||
|
|
||||||
def move_cursor_to_task(self, task_id):
|
def move_cursor_to_task(self, task_id):
|
||||||
# ick, but only way to search table?
|
# ick, but only way to search table?
|
||||||
for row in range(len(self.table.rows)):
|
for row in range(self.table.row_count):
|
||||||
data = self.table.get_row_at(row)
|
data = self.table.get_row_at(row)
|
||||||
if data[0] == str(task_id):
|
if data[0] == str(task_id):
|
||||||
self.table.move_cursor(row=row, column=1)
|
self.table.move_cursor(row=row, column=1)
|
||||||
break
|
break
|
||||||
else:
|
|
||||||
raise Exception("nope")
|
|
||||||
|
|
||||||
# Control of edit bar ####################
|
# Control of edit bar ####################
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user