Controller.py 662 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # @author: nandHyf
  2. import Stateful, View
  3. class Command():
  4. pass
  5. class Client():
  6. def __init__(self) -> None:
  7. pass
  8. def get_config():
  9. doc = Stateful.getTomlDoc("config.toml")
  10. # T-B-C...
  11. global lang
  12. lang = ""
  13. def get_help():
  14. t = Stateful.matchTomlKey("config.toml", "lang")
  15. print(t)
  16. def excute():
  17. pass
  18. def start():
  19. # get config
  20. Client.get_config()
  21. # test aera
  22. Client.get_help()
  23. # list board
  24. # Command.list
  25. # wait command input
  26. command = input()
  27. if __name__ == "__main__":
  28. Client.start()