Created
June 26, 2009 19:39
-
-
Save batok/136685 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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