import sys, os
from wxPython.wx import *
class main_window(wxFrame):
def __init__(self, parent, id, title):
wxFrame.__init__(self, parent, -1, title, size = (200, 100),style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
self.control = wxTextCtrl(self, -1, style=wxTE_MULTILINE)
self.Show(true)
class App(wxApp):
def OnInit(self):
frame = main_window(None, -1, "斑竹: (A Demonstration)")
self.SetTopWindow(frame)
return 1
app = App(0)
app.MainLoop()
from wxPython.wx import *
class main_window(wxFrame):
def __init__(self, parent, id, title):
wxFrame.__init__(self, parent, -1, title, size = (200, 100),style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
self.control = wxTextCtrl(self, -1, style=wxTE_MULTILINE)
self.Show(true)
class App(wxApp):
def OnInit(self):
frame = main_window(None, -1, "斑竹: (A Demonstration)")
self.SetTopWindow(frame)
return 1
app = App(0)
app.MainLoop()