URL
https://opencores.org/ocsvn/phr/phr/trunk
Subversion Repositories phr
[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [minimal python2.7.6/] [wx_hola_mundo/] [wx_example.py] - Rev 242
Go to most recent revision | Compare with Previous | Blame | View Log
import wx class MyFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title ) btn = wx.Button(self, -1, "Hola") self.Bind(wx.EVT_BUTTON, self.say_hello, btn) def say_hello(self,*arg): print "hola todo el mundo!" class MyApp(wx.App): def OnInit(self): frame = MyFrame(None, "Simple wxPython App") frame.Show(True) return True MyApp().MainLoop()
Go to most recent revision | Compare with Previous | Blame | View Log