Preferred style

Phil <[email protected]> Thu, 8 Apr 2021 16:16:58 +1000
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Thank you for reading this.

It's been quite some time since I've done anything with WxPython and 
while looking through some of my old code for ideas I see that I have 
copied many different styles over the years and now I'm wondering which 
is preferred:

wx.Frame.__init__(self, None, wx.ID_ANY, "Pointer Test", size=(300,300))

or

super(Mywin, self).__init__(parent, title=title, size=(500, 400))

The WxPython books that I have are quite dated and I suppose super is 
the more recent and the preferred method.

And what about this with the window name here instead of in the line 
beginning with "super"?

app = wx.App()
Mywin(None, 'Name_of_window')
app.MainLoop()

-- 

Regards,
Phil

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/e272954b-88a3-7fa5-73ac-3769924865dc%40gmail.com.