def create_preorder(self): self.w = self.sized = (self.w or wx.FlexGridSizer(self.rows, self.cols, self.vgap, self.hgap))