I'm using Python 2.7.13 with Tkinter.
This is part of my program:
PAButton = Tkinter.ButtonPress(PAFrame, text='PA', fg='white', bg='blue')
PAButton.pack()
self.PAButton.bind("<ButtonPress>", self.playPA)
This is the gist of what I am trying to do:
When PAButton is pressed (not released), run the function playPA()
as defined earlier in the script.
However, I get this error:
AttributeError: 'module' object has no attribute 'ButtonPress'
How would I correctly accomplish my goal?