#some error self.idc_splitter_twobar.Unsplit() #have to , see document w1.Show(True) # when unsplitting , one pane hide , now we show them w2.Show(True) if s==wxSPLIT_VERTICAL: self.idc_splitter_twobar.SplitHorizontally(w1,w2) elif s==wxSPLIT_HORIZONTAL: self.idc_splitter_twobar.SplitVertically(w1,w2) else: assert(0) #----- Message Map and Event Handler ----- end
if __name__=="__main__": app = myApp(0) app.MainLoop() ------------------------main.py-----------------------end