Hey there everyone. well i have been working on python for about 2 months now and i just cant seem to get my background image to work. I have created the GUI with Tkinter and put a label in it with my name etc, but the idea was to have a picture of myself in the GUI. This is what i have so far, everything works (GUI and label) but just not the background image .
# A GUI displaying a background picture
from Tkinter import *
# create the window
root = Tk()
root.title("GUI program")
root.geometry("640x510")
# create a frame in the window to hold widgets
app = Frame(root)
app.grid()
# create a label in the frame
lbl = Label(app, text = "Hi, my name is Greer!")
lbl.grid()
# kick off the windows loop
root.mainloop()
# load background image
def main():
room_image = load_image("c:\Python23" "room_image.jpg")
background = room_image
the_room = Room(image = room_image,
screen_width = 100,
screen_height = 500,
fps = 50)
add(the_room)
main()
can somone please help me i just cant seem to figure out what exaclty im doing wrong.
thankyou