Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------Example 1--------
- import wx
- a=wx.App()
- myframe = wx.Frame(None, title="Hello World", size=(500,500))
- myframe.Show()
- a.MainLoop()
- --------Example 2--------
- import wx
- class Textpanel(wx.StaticText):
- def __init__(self, parent):
- super().__init__(parent, size=(100,100), name="some name", label="dododas dasdasawda sadsa asdkpaow poaowiaed paowipg", style=wx.ALIGN_CENTRE_HORIZONTAL)
- self.Wrap(100)
- self.cat = "I am a cat"
- class MainFrame(wx.Frame):
- def __init__(self):
- super().__init__(None, title="Box", size=(500,500))
- self.dog = "I am a dog"
- Textpanel(self)
- if __name__ == "__main__":
- app = wx.App()
- myframe = MainFrame()
- myframe.Show()
- app.MainLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement