Well, I am particularly retarded on this point. Fixed my own problem after I got the cobwebs shaken out...
Nate On Tue, Jul 1, 2008 at 8:37 AM, Nate Lowrie <[EMAIL PROTECTED]> wrote: > This CD error has baffled me to no end. To see what is going on, > refer to this picture: > > http://img.photobucket.com/albums/v663/Solodex/Dabo/CD_Choices.png > > The dDropdownList and the 2 widget to the right of it are part of a > composite class. It is used for defining search parameters based on > metadata. I don't know what the metadata fields are at runtime so I > need to dynamically set the Choices on that first dropdown list. I > have a method to add an instance of the class dynamically. Ed, this > is similar to you adding tweets in your twitter client. > > Here is the code in the add function: > > def _addSearchPanel(self, spacer=True): > self.Form.Freeze() > if spacer: > self.Sizer.appendSpacer(5) > > pnl = self._partSearchClass(self) > pnl.FieldEntry.Choices = self._fieldChoices > self.Sizer.append(self._partSearchClass(self), "expand") > > self.Form.layout() > self.Form.Thaw() > dabo.ui.callAfterInterval(50, self._tickle) > > It will add a new class to that panel's Sizer and display it just > fine. However, the choices are not present as you can see in the > picture. The object reference (pnl.FieldEntry) is correct and > self._fieldChoices is correct as well. I am not sure what the problem > is. I've ruled out a wx 2.8.8.0 issue because the same thing happens > on 2.8.7.1. > > Ed, if you want the code for testing, email me off list. > > Nate L. > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
