Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import wx
- class myframe(wx.Frame):
- def __init__(self, *args, **kwds):
- wx.Frame.__init__(self, *args, **kwds)
- self.pnl = wx.Panel(self, -1)
- pnl = self.pnl
- mybtn = wx.Button(pnl, -1, 'Teßt')
- mystatic = wx.StaticText(pnl, -1, u'Teßt 2 äöü 我觉得不舒服')
- szmain = wx.BoxSizer(wx.VERTICAL)
- szmain.Add(mystatic, 1, wx.EXPAND|wx.ALL, 4)
- szmain.Add(mybtn, 0, wx.EXPAND|wx.ALL, 4)
- pnl.SetSizer(szmain)
- if __name__ == "__main__":
- app = wx.App(0)
- # dialog_1 = MyDialog1(None, -1, 'dialog_1')
- dialog_1 = myframe(None, -1, 'ÄÖÜ scharfes ß')
- dialog_1.Show()
- app.MainLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement