-
-
Save brownie22322/569a6a78d90a4b58e93498e5d4a0f322 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def start(): | |
global chosen_word | |
global length | |
global root | |
global text_word | |
global n | |
global word_label | |
global hangman_image_label | |
global image_list | |
root = Tk() | |
root.title("Hangman") | |
img_1 = ImageTk.PhotoImage(Image.open(r"C:\Users\Tirth\Pictures\Hangman\1.png")) | |
img_2 = ImageTk.PhotoImage(Image.open(r"C:\Users\Tirth\Pictures\Hangman\2.png")) | |
img_3 = ImageTk.PhotoImage(Image.open(r"C:\Users\Tirth\Pictures\Hangman\3.png")) | |
img_4 = ImageTk.PhotoImage(Image.open(r"C:\Users\Tirth\Pictures\Hangman\4.png")) | |
img_5 = ImageTk.PhotoImage(Image.open(r"C:\Users\Tirth\Pictures\Hangman\5.png")) | |
img_6 = ImageTk.PhotoImage(Image.open(r"C:\Users\Tirth\Pictures\Hangman\6.png")) | |
img_7 = ImageTk.PhotoImage(Image.open(r"C:\Users\Tirth\Pictures\Hangman\7.png")) | |
image_list = [img_1, img_2, img_3, img_4, img_5, img_6, img_7] | |
n = 0 | |
words = ['abruptly','absurd','abyss','affix','askew'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment