From: Steven P. <n9...@n9...> - 2003-12-06 14:34:27
|
On Dec 5, 2003, at 11:36 PM, Roger Binns wrote: > I have committed fixes for both the issues you are seeing. > The coredump was because I didn't supply an initial value > for the combobox. On Windows and Linux it then defaults > to the empty string. On Mac it defaults to a coredump :-) The problem still remained... I did a little more work on it and have a fix for you... Try something like this: if self.phonebox.GetSelection() == -1 and \ self.phonebox.GetCount() >= 1: self.phonebox.SetSelection(0) print "pb=",self.phonebox.GetValue() if self.phonebox.GetValue()=="": self.phonebox.SetValue("LG-VX4400") You were initializing the combobox, but apparently it still didn't have a default selected item, which... causes a coredump on wxMac. ;-) > Thanks for nailing down the issue. I think that if you incorporate the above, or something that accomplishes the same thing elsewhere, it will nail it down. The program now runs on MacOS X 10.3.1, so all is happy here. Now on to see about bundling it up for a Mac application. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |