Hello,
combox inside collapsible pane do not want to refresh list at runtime.
My static control refresh ok but the combo box not at all.
Even when I force a redraw. Any idea ?
Thanx
Robert
self.cp = wx.CollapsiblePane(self, label="Variables Settings for Graph ")
self.Bind(wx.EVT_COLLAPSIBLEPANE_CHANGED, self.OnPaneChanged, self.cp)
self.MakePaneContent(self.cp.GetPane())
self.GraphSizer.Add(self.cp)# wx.EXPAND)
def MakePaneContent(self, pane):
locallabel = wx.StaticText(pane, -1,“X-Axis”, style=wx.ALIGN_RIGHT)
sizerhoriz.Add(locallabel,1)
cbx1 = wx.ComboBox(pane, 101 , “default value” , (90, 80), (95, -1),[], wx.CB_DROPDOWN)
pane.Bind(wx.EVT_COMBOBOX,
self.EvtComboBox, cbx1)
sizerhoriz.Add(cbx1,1)
for item in labels:
cbx1.Append(item, item.upper())
#wx.LogMessage(“Appending:”+item)
pane.SetSizer(sizergpan)
This is not working at all. neither append nor changing the list. The list get stuck with the original list of initialisation.
···
Découvrez une nouvelle façon d’obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.