Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from doctest import master
- import tkinter as tk
- import os
- title = "Torroes Prime's Text Adventure Engine library Builder"
- programPath = os.path.dirname(os.path.abspath(__file__))
- systemFont = programPath+"\\larabiefont rg.otf"
- fontSize = 12
- icon = programPath+"\\libraryProgramIcon.ico"
- testText = """+-------------------------------------------------------------------------------------------------+
- | ___ __ __ __ __ ___ __ __ __ ___ . __ |
- | | / \ |__) |__) / \ |__ /__` |__) |__) | |\/| |__ ' /__` |
- | | \__/ | \ | \ \__/ |___ .__/ | | \ | | | |___ .__/ |
- | |
- | ___ ___ ___ __ ___ ___ __ ___ __ __ ___ ___ |
- | | |__ \_/ | /\ | \ \ / |__ |\ | | | | |__) |__ /__` \ / /__` | |__ |\/| |
- | | |___ / \ | /~~\ |__/ \/ |___ | \| | \__/ | \ |___ .__/ | .__/ | |___ | | |
- +-------------------------------------------------------------------------------------------------+
- | |
- | 1 - Manage Characters |
- | 2 - Start a New game |
- | 3 - Manage adventures |
- | 4 - Manage in-progress adventures |
- | 5 - Change Game options |
- | 6 - Game Tutorial |
- | 7 - Help |
- | 8 - quit |
- +-------------------------------------------------------------------------------------------------+
- Type the number that corrosponds to your desired action, and press enter."""
- def main():
- buildGui()
- def buildGui():
- window = tk.Tk()
- window.title(title)
- window.geometry("800x640")
- inputFrame = tk.Frame(master=window)
- gameDisplay = tk.Label(height=630,text=testText)
- inputLabel =tk.Label(master=inputFrame,text=">>>")
- userInput = tk.Entry(master=inputFrame)
- gameDisplay.pack(fill=tk.X)
- inputLabel.pack()
- userInput.pack(fill=tk.Y)
- inputFrame.pack(fill=tk.X)
- window.mainloop()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement