Friday, March 5, 2010

create a empty window with wx.python

this was the basic exercise in GUI programming, in here i make a empty window using wxpython





























import wx



class aplikasi(wx.App):

def OnInit(self):

self.frame=wx.Frame(None)

self.frame.Show()

self.SetTopWindow(self.frame)

return True



AplikasiKu=aplikasi()

AplikasiKu.MainLoop




nanti hasilnya seperti gambar di bawah ini




windowpy.GIF

No comments:

Post a Comment