0 Thropian 3 7 Years Ago I'm making a little game and I can't get button bindings to work. Here is what I have so far def forward(event): print "up" frame.bind("<Up>",forward) but pressing the up arrow does nothing...is there something I missed? binding python tkinter
0 pyTony 888 7 Years Ago Maybe you are defining function in class and forgot to include self parameter, works, when I added it in init of my tkinter program main.bind("<Up>", self.forward) and the def into the class. Also to my Photoimage post it worked, but must bind to master, not frame Edited 7 Years Ago by pyTony: n/a