Skip to content

Instantly share code, notes, and snippets.

@ceffiong
Last active February 6, 2020 11:45
Show Gist options
  • Save ceffiong/cfab2b18fe7589b6247f3376b32904ec to your computer and use it in GitHub Desktop.
Save ceffiong/cfab2b18fe7589b6247f3376b32904ec to your computer and use it in GitHub Desktop.
Guessing Game Main Window
import tkinter as tk
window = tk.Tk()
window.title("Guessing Game")
lblInst = tk.Label(window, text = "Guess a number from 0 to 9")
lblLine0 = tk.Label(window, text = "*********************************************************************")
# append elements to grid
lblInst.grid(row=0, column=0, columnspan=5)
lblLine0.grid(row=1, column=0, columnspan=5)
window.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment