redo screen system
This commit is contained in:
12
untitled/screens/common.py
Normal file
12
untitled/screens/common.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from untitled import ui
|
||||
|
||||
|
||||
def options():
|
||||
while True:
|
||||
match ui.select("Please choose an option:", ["Save", "Save and quit", "Back"]):
|
||||
case "Back":
|
||||
return "back"
|
||||
case "Save":
|
||||
return "save"
|
||||
case "Save and quit":
|
||||
return "savequit"
|
||||
Reference in New Issue
Block a user