Skip to content

Instantly share code, notes, and snippets.

@batok
Created June 26, 2009 19:39
Show Gist options
  • Save batok/136685 to your computer and use it in GitHub Desktop.
Save batok/136685 to your computer and use it in GitHub Desktop.
import wx
class Frame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self,None,-1, "Hello World", size = ( 400,400))
self.Bind(wx.EVT_LEFT_DOWN, lambda evt: wx.StaticText(self, -1, "inside", evt.GetPosition()))
if __name__ == "__main__":
app = wx.PySimpleApp()
Frame().Show()
app.MainLoop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment