#coding: utf-8

# set_size.py

import wx


class Example(wx.Frame):

    def __init__(self, parent, title):
        super(Example, self).__init__(parent, title=title,
            size=(350, 250))


def main():

    app = wx.App()
    ex = Example(None, title='Sizing')
    ex.SetSize(640, 480)
    #FrameクラスのメソッドSetSize()を使ってもよい
    ex.Show()
    app.MainLoop()


if __name__ == '__main__':
    main()