Changed match to work with cython
This commit is contained in:
parent
db283591c0
commit
7bfee64b45
1 changed files with 6 additions and 7 deletions
13
tui.py
13
tui.py
|
@ -82,13 +82,12 @@ class App():
|
||||||
self.gui.orders_box.refresh()
|
self.gui.orders_box.refresh()
|
||||||
|
|
||||||
def decide_state(self):
|
def decide_state(self):
|
||||||
match self.state:
|
if self.state == 0:
|
||||||
case 0:
|
return self.search
|
||||||
return self.search
|
elif self.state == 1:
|
||||||
case 1:
|
return self.select_item
|
||||||
return self.select_item
|
elif self.state == 2:
|
||||||
case 2:
|
return self.select_order
|
||||||
return self.select_order
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.show_gui()
|
self.show_gui()
|
||||||
|
|
Loading…
Reference in a new issue