Changed match to work with cython

This commit is contained in:
Muaz Ahmad 2022-11-07 15:30:28 +05:00
parent db283591c0
commit 7bfee64b45

7
tui.py
View file

@ -82,12 +82,11 @@ class App():
self.gui.orders_box.refresh()
def decide_state(self):
match self.state:
case 0:
if self.state == 0:
return self.search
case 1:
elif self.state == 1:
return self.select_item
case 2:
elif self.state == 2:
return self.select_order
def run(self):