Wxpython 两种定义子类窗体的方式,哪个更好?
Wxpython 两种定义子类窗体的方式,哪个更好?
主要是默认参数的摆放问题的区别,哪中方式更好?还是得按实际需求来说……
class MyFrame(wx.Frame):
def __init__(self, parent, id=wx.ID_ANY, title="",
pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE,
name="MyFrame"):
super(MyFrame, self).__init__(parent, id, title, pos,
size, style, name)
class MyFrame(wx.Frame):
def __init__(self, parent, id, title, pos, size, style, name):
super(MyFrame, self).__init__(parent, id=wx.ID_ANY, title="",
pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE,
name="MyFrame")