0

I am trying to set "myimage" as the background for my GUI but having problems with

self.canvas.create_image(myimage,750,450)

def __init__(self):
        self.root=tk.Tk()
        # The number of times the GUI is updated
        self.ctr = 0
        #creating the Canvas
        self.canvas = tk.Canvas(self.root, width=750, height=450, bg = "black")
        #Sets the background as an image
        myimage=PhotoImage(file='world.gif')
        self.canvas.create_image(myimage,750,450)
2
Contributors
1
Reply
10
Views
3 Years
Discussion Span
Last Post by vegaseat
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.