Jetzt würde ich natürlich gerne wissen, wo der Fehler liegt.
Mit dem Programm, das ich zusammen mit einem Freund schreibe, soll man in einem (sehr) kleinen Teil(eine Straße oder so) von Heidelberg vor und zurück gehen und sich drehen können, mehr oder weniger wie in Google Street View.
Vor oder zurück gehen soll man nur können, wenn man nicht gedreht ist.
Code: Alles auswählen
testvar = dictionary_start[bildliste[bildposition]]
if drehposition == 0:
bild = PhotoImage(file=bildliste[bildposition])
elif testvar == 1:
bild = PhotoImage(file=dictionary1[drehposition])
elif testvar == 2:
bild = PhotoImage(file=dictionary2[drehposition])
elif testvar == 3:
bild = PhotoImage(file=dictionary3[drehposition])
elif testvar == 4:
bild = PhotoImage(file=dictionary4[drehposition])
elif testvar == 5:
bild = PhotoImage(file=dictionary5[drehposition])
elif testvar == 6:
bild = PhotoImage(file=dictionary6[drehposition])
elif testvar == 7:
bild = PhotoImage(file=dictionary7[drehposition])
elif testvar == 8:
bild = PhotoImage(file=dictionary8[drehposition])
elif testvar == 9:
bild = PhotoImage(file=dictionary9[drehposition])
elif testvar == 10:
bild = PhotoImage(file=dictionary10[drehposition])
bildlabel = Label(image=bild)
bildlabel.place(x = 50, y = 0)#seltsamerweise kommt kein neues Bild