Advertisement
TorroesPrime

Untitled

Mar 18th, 2022
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.72 KB | None | 0 0
  1. from doctest import master
  2. import tkinter as tk
  3. import os
  4.  
  5. title = "Torroes Prime's Text Adventure Engine library Builder"
  6. programPath = os.path.dirname(os.path.abspath(__file__))
  7. systemFont = programPath+"\\larabiefont rg.otf"
  8. fontSize = 12
  9. icon = programPath+"\\libraryProgramIcon.ico"
  10. testText = """+-------------------------------------------------------------------------------------------------+
  11. |            ___  __   __   __   __   ___  __      __   __           ___ .  __                    |
  12. |             |  /  \ |__) |__) /  \ |__  /__`    |__) |__) |  |\/| |__  ' /__`                   |
  13. |             |  \__/ |  \ |  \ \__/ |___ .__/    |    |  \ |  |  | |___   .__/                   |
  14. |                                                                                                 |
  15. | ___  ___     ___          __        ___      ___       __   ___     __       __  ___  ___       |
  16. |  |  |__  \_/  |      /\ |  \ \ / |__  |\ |  |  |  | |__) |__     /__` \ / /__`  |  |__   |\/| |
  17. |  |  |___ / \ |     /~~\ |__/  \/  |___ | \|  |  \__/ |  \ |___    .__/  |  .__/  |  |___  |  | |
  18. +-------------------------------------------------------------------------------------------------+
  19. |                                                                                                 |
  20. |   1 - Manage Characters                                                                         |
  21. |   2 - Start a New game                                                                          |
  22. |   3 - Manage adventures                                                                         |
  23. |   4 - Manage in-progress adventures                                                             |
  24. |   5 - Change Game options                                                                       |
  25. |   6 - Game Tutorial                                                                             |
  26. |   7 - Help                                                                                      |
  27. |   8 - quit                                                                                      |
  28. +-------------------------------------------------------------------------------------------------+
  29. Type the number that corrosponds to your desired action, and press enter."""
  30. def main():
  31.     buildGui()
  32.  
  33. def buildGui():
  34.     window = tk.Tk()
  35.     window.title(title)
  36.     window.geometry("800x640")
  37.     inputFrame = tk.Frame(master=window)
  38.     gameDisplay = tk.Label(height=630,text=testText)
  39.     inputLabel =tk.Label(master=inputFrame,text=">>>")
  40.     userInput = tk.Entry(master=inputFrame)
  41.     gameDisplay.pack(fill=tk.X)
  42.     inputLabel.pack()
  43.     userInput.pack(fill=tk.Y)
  44.     inputFrame.pack(fill=tk.X)
  45.     window.mainloop()
  46.  
  47. main()
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement