wxPython:フレームテンプレート

wx.Frameのテンプレート

■環境

#! /usr/bin/env python
# coding:utf-8

import wx

class MyFrame(wx.Frame):
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, id, title)
        
        self.__setProperties()
        self.__setLayout()
        
        self.Centre()
        self.Show(True)

    def __setProperties(self):
        pass
    
    def __setLayout(self):
        pass

def main():
    app = wx.App(redirect=False)
    MyFrame(None, -1, 'MyFrame.py')
    app.MainLoop()    

if __name__ == "__main__":
    main()