import wx class Panel1(wx.Panel): def __init__(self, parent, id): wx.Panel.__init__(self, parent, id) btn = wx.Button(self, label='Mehet') app = wx.App() frame = wx.Frame(None, -1, 'Egy gomb', size=(400, 300)) Panel1(frame, -1) frame.Show() app.MainLoop()