wxpython skeleton code Language Syntax

#!python
 
import wx
 
class PySimpleApp(wx.App):
    def __init__(self, redirect=False, filename=None, usbBestVisual=False, clearSigInt=True):
        wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
 
    def OnInit(self):
        return True
 
class MyFrame(wx.Frame):
    def __init__(self, parent, id):
        wx.Frame.__init__(self, parent, id, MyFrame', size=(300, 100))
 
if __name__ == '__main__':
    app = wx.PySimpleApp()
    frame = MyFrame(None, id=-1)
    frame.Show(True)
    app.MainLoop()

덧글

댓글 입력 영역


통계 위젯 (블랙)

10
3
430646