On Thursday 30 July 2009 11:21:30 am John wrote:
> On Thursday 30 July 2009 10:10:13 am John wrote:
> > Hi,
> >
> > I have a need to dynamicly refresh a dropdown.  I have tried using
> > bindEvent for GotFocus, Hit, MouseLeftClick. Using the following code
> > below to refresh the choices and keys.
> >
> > Where courseID = the RegID of the dropdown
> > def courseChoices(self):
> >     self.escourse.requery()
> >         courseDS = self.escourse.getDataSet()
> >         availableChoices=['<None>']
> >         keyChoices=[0]
> >         for row in courseDS:
> >             availableChoices.append(row['name_1'])
> >             keyChoices.append(row['pkid'])
> >
> >         return availableChoices,keyChoices
> >
> >     def _refresh_courses(self):
> >     self.courseID.Choices = []
> >     self.courseID.Keys = []
> >     ch,ky = self.courseChoices()
> >     self.courseID.Choices = ch
> >     self.courseID.Keys = ky
> >     self.courseID.update()
> >
> > On my system the form locks up on
> > self.courseID.Choices = ch
> >
> > Johnf
>
> I also can not get the .clear() to work.
>
> Johnf

This appears to be only an issue on Linux.  Running on Windows all works.  I 
wonder if this is related to my performance issue that I have.  

openSUSE 11.0, python 2.5.2, wxPython 2.8.10.1.

I very sure this in not a openSUSE issue because I have the same code running 
on ubuntu 9.04 and it response the same.

Johnf




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to