import wx, wx.stc as stc
faces = { 'times': 'Times',
'mono' : 'Courier',
'helv' : 'Helvetica',
'other': 'new century schoolbook',
'size' : 12,
'size2': 10,
}
class MFrame(wx.Frame):
def __init__(self,*args,**kargs):
wx.Frame.__init__(self,*args,**kargs)
self.Pane = wx.Panel(self,-1)
self.StyleBox = StylePane(self.Pane,-1)
hbox= wx.BoxSizer()
hbox.Add(self.StyleBox,1,wx.EXPAND)
self.Pane.SetSizer(hbox)
hbox = wx.BoxSizer()
hbox.Add(self.Pane,1,wx.EXPAND)
self.SetSizer(hbox)
self.CenterOnScreen()
self.Show()
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载