Thread: [Boa Constr] last cvs bug
Status: Beta
Brought to you by:
riaan
From: Michele P. <mic...@un...> - 2006-11-10 17:27:00
|
Hi, the wx.Locale.IsAvailable was introduce into 2.7.1, so for old version, use this function can be a problem. This patch solve the problem. PrefsExplorer line 379 def getValues(self): if wx.__version__ >= '2.7.1.0': return ['wx.'+n for n in dir(wx) if n.startswith('LANGUAGE_') and wx.Locale.IsAvailable(getattr(wx, n))] else: return ['wx.'+n for n in dir(wx) if n.startswith('LANGUAGE_') ] Michele |
From: Riaan B. <riaan@e.co.za> - 2006-11-11 11:55:31
|
Hi Michele, Michele Petrazzo wrote: > Hi, > the wx.Locale.IsAvailable was introduce into 2.7.1, so for old version, > use this function can be a problem. This patch solve the problem. > PrefsExplorer line 379 > > def getValues(self): > if wx.__version__ >= '2.7.1.0': > return ['wx.'+n for n in dir(wx) > if n.startswith('LANGUAGE_') and > wx.Locale.IsAvailable(getattr(wx, n))] > else: > return ['wx.'+n for n in dir(wx) > if n.startswith('LANGUAGE_') ] I fixed this a little differently yesterday. IsAvailable can also raise PyAssertionErrors, That's handled too. Checked into CVS. Cheers, Riaan. |