I upgraded wxPython from -2.6.3.2 to -2.8.0.1 and I'm finding new errors
when I run my application. The current one involves a wx.ComboBox() which
has not changed according to the 'Recent Changes' page of the web site.
The definition of the widget is
self.vname = wx.ComboBox(self, wx.ID_ANY, size=wx.Size(127, 25),
style=wx.TAB_TRAVERSAL|wx.RAISED_BORDER)
and when I look at the new API page I don't see those styles available. What
I do see are wx.CB_DROPDOWN and wx.CB_SORT. Are the former no longer valid?
There's something else causing the error but I don't see what it is. The
function starts as,
def loadWidgets(self, event):
# Load all variable names into vname.
for item in self.appData.varis:
self.vname.Append(item[1])
# now load rest of data associated with first item.
displayed = self.vname.GetValue()
print 'Displayed in variable page: ', displayed, '\n'
The print statement was added for debugging purposes. The identification
string is printed, but the variable is not. Do I now use
self.vname.SetValue(item[1])
instead of self.vname.Append()?
Huh! Guess not. Can't use self.vname.SetStringSelection() either.
What's the replacement for Append(), please?
Rich
···
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863