On 07/04/2011 11:29, enrico secco wrote: > Hi, > This is the code: > def setValue(self, evt = None): > try: > sessione = self.Application.Sessione > anno = sessione['anno'] > except: > anno = None > if anno: > self.selectFields['ANNO']["ctrl"].Value = anno > self.onRequery(evt) > return > > The method is defined in SelectPage. > To call onQuery() is mandatory if we want to update also the grid. Otherwise > it's commentable. > It's > an example because different selectPages can have the necessity to set > more value to be consistent with the session parameters. > What about using Pubsub for this?
http://pubsub.sourceforge.net/ BTW, this is included in wxPython and as of 2.8.11 it is the new version. Werner _______________________________________________ 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]
