Nathan smith
unread,Aug 24, 2019, 10:05:40 AM8/24/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxpytho...@googlegroups.com
Hi there,
I'm running wx python classic, and have the following code:
def setup_screen1(self):
# code to create a panel and sizer goes here...
self.info1 = wx.ListCtrl(panel, -1, style = wx.LC_REPORT)
hbox1.Add(self.info1, 1, wx.EXPAND|wx.ALIGN_LEFT|wx.ALL,5)
# code for adding items to the list, and the rest of the panel code
goes here.
That works as expected.
My question is this.
In my program, I would like the info list to show up on multiple screens.
I do not call panel.Destroy() at any time, though I hide and show it a
few times.
therefore, is this code okay?
def setup_screen2(self):
#create the panel and sizer
hbox1.Add(self.info1, 1, wx.EXPAND|wx.ALIGN_LEFT|wx.ALL,5)
# code for the rest of the panel.
will this add the same list, that looks the same on every screen correctly?
thanks
Nathan