sizer.Add(btns, 0, wxEXPAND|wxALL, 15)
self.SetSizer(sizer)
- self.SetAutoLayout(true)
+ self.SetAutoLayout(True)
+
+ self.sizer = sizer # save it for testing later
EVT_BUTTON(self, BTN1, self.OnFindButton1)
EVT_BUTTON(self, BTN2, self.OnFindButton2)
else:
self.log.write("The objects are NOT the same! <frown>\n")
+ sizer = self.GetSizer()
+ if sizer is None:
+ self.log.write("***** OOPS! None returned...\n")
+ return
+ if sizer is self.sizer:
+ self.log.write("The objects are the same! <grin>\n")
+ else:
+ self.log.write("The objects are NOT the same! <frown>\n")
+
#----------------------------------------------------------------------
</body></html>
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+