No, a widget can only have one parent at a time. You could use the Reparent method to switch it over to a new parent panel when needed, but usually it's better to just create a new listctrl for each panel. If you're concerned about duplicating the data in each listctrl then you could use the wx.LC_VIRTUAL flag and keep your data in a list or some other data object that they all share. The listctrl will then ask you, via overridden methods, for the data and attributes as it needs them for display.
On Saturday, August 24, 2019 at 7:05:40 AM UTC-7, Nathan smith wrote:
I'm running wx python classic, and have the following code: