Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- import time
- class Game:
- def __init__(self):
- self.root = Tk()
- self.canvas = Canvas(self.root, width = 600, height = 600)
- self.canvas.pack()
- self.root.update()
- self.bg = PhotoImage(file = 'bg.gif')
- self.canvas.create_image(0,0,image=self.bg,anchor='nw')
- g = Game()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement