Skip to content

Instantly share code, notes, and snippets.

@jrabbit
Created August 14, 2010 05:08
Show Gist options
  • Select an option

  • Save jrabbit/524001 to your computer and use it in GitHub Desktop.

Select an option

Save jrabbit/524001 to your computer and use it in GitHub Desktop.
def onMouseDown(self, sender, x, y):
if instuctions is not 1:
self.img = CanvasImage('media/instructions%20screen.png', self)
instructions = 1
elif game is not 1:
self.img = CanvasImage('media/bkg.png', self)
game = 1
self.addMouseListener(self)
#defenddit()
RootPanel().add(HTML("mouse down bkg"))
else:
#BANG!
#bang()
RootPanel().add(HTML("mouse down last"))
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment