Does anyone know where this comes from or comes in! I haven't seen it and now i have seen it in my code ( i know what it means but can anyone provide somemore info....)

wxPython calls this method to initialize an application

no it doesn't! That would be __init__ or __new__

Yes it does!

class MyApp(wx.App):
    def OnInit(self):
        frame = MyFrame(None, -1, "This is a test")
        # tell wxPython that this is our main window
        # return an optional success flag
        return True

You are correct but that is only in a wxpython that you can use a method called OnInit and then the code is executed after the init statement!

Anyways the answer is very simple! This is only in wxPython!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.