Changeset 739
- Timestamp:
- Dec 23, 2011 5:46:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified moxy/trunk/src/test/test9.py ¶
r738 r739 1 1 ''' 2 2 Created on Dec 23, 2011 3 4 Demonstrate the order in which __init__() and OnInit() are called 3 5 4 6 @author: Pete … … 9 11 import sys #@UnusedImport 10 12 11 class DemoFrame(wx. DemoFrame):13 class DemoFrame(wx.Frame): 12 14 def __init__(self, parent, id, title): #@ReservedAssignment 13 15 print "DemoFrame __init__" 14 wx. DemoFrame.__init__(self, parent, id, title)16 wx.Frame.__init__(self, parent, id, title) 15 17 16 class DemoApp(wx. DemoApp):18 class DemoApp(wx.App): 17 19 def __init__(self, redirect=True, filename=None): 18 20 print "DemoApp __init__" 19 wx. DemoApp.__init__(self, redirect, filename)21 wx.App.__init__(self, redirect, filename) 20 22 21 23 def OnInit(self):
Note: See TracChangeset
for help on using the changeset viewer.