self.SetSizer(sizer)
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")
+
#----------------------------------------------------------------------