Changeset 739


Ignore:
Timestamp:
Dec 23, 2011 5:46:23 PM (14 years ago)
Author:
jemian
Message:

Demonstrate the order in which init() and OnInit?() are called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified moxy/trunk/src/test/test9.py

    r738 r739  
    11'''
    22Created on Dec 23, 2011
     3
     4Demonstrate the order in which __init__() and OnInit() are called
    35
    46@author: Pete
     
    911import sys #@UnusedImport
    1012
    11 class DemoFrame(wx.DemoFrame):
     13class DemoFrame(wx.Frame):
    1214    def __init__(self, parent, id, title): #@ReservedAssignment
    1315        print "DemoFrame __init__"
    14         wx.DemoFrame.__init__(self, parent, id, title)
     16        wx.Frame.__init__(self, parent, id, title)
    1517
    16 class DemoApp(wx.DemoApp):
     18class DemoApp(wx.App):
    1719    def __init__(self, redirect=True, filename=None):
    1820        print "DemoApp __init__"
    19         wx.DemoApp.__init__(self, redirect, filename)
     21        wx.App.__init__(self, redirect, filename)
    2022
    2123    def OnInit(self):
Note: See TracChangeset for help on using the changeset viewer.