Advertisement
Guest User

Untitled

a guest
Feb 12th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. import wx
  4.  
  5. class myframe(wx.Frame):        
  6.     def __init__(self, *args, **kwds):
  7.         wx.Frame.__init__(self, *args, **kwds)
  8.        
  9.         self.pnl = wx.Panel(self, -1)
  10.         pnl = self.pnl
  11.  
  12.         mybtn = wx.Button(pnl, -1, 'Teßt')
  13.         mystatic = wx.StaticText(pnl, -1, u'Teßt 2 äöü 我觉得不舒服')
  14.        
  15.         szmain = wx.BoxSizer(wx.VERTICAL)
  16.         szmain.Add(mystatic, 1, wx.EXPAND|wx.ALL, 4)
  17.         szmain.Add(mybtn, 0, wx.EXPAND|wx.ALL, 4)
  18.         pnl.SetSizer(szmain)
  19.        
  20.        
  21. if __name__ == "__main__":
  22.     app = wx.App(0)    
  23. #    dialog_1 = MyDialog1(None, -1, 'dialog_1')
  24.     dialog_1 = myframe(None, -1, 'ÄÖÜ scharfes ß')
  25.     dialog_1.Show()
  26.     app.MainLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement