Well, we’ve got 3 (4 (5)) ways the code can look
1
wx.Locale(…)
2
self.locale = wx.Locale(…)
3
self.__random_something = wx.Locale(…)
4
self.__random_something = wx.Locale(…)
del self.__random_something
Version 1 does not work, which rules out the
init-the-system-for-magic-pickup-later theory (much like it
used to be with InitAllImageFormats()).
Version 2 does work but we don’t know why.
So:
Version 3 and 4 do “the same” – but what ?
And, try this:
5
self.locale = wx.Locale(…)
del self.locale
Does it still work ?
This is 2 and 4 combined to find out whether self.locale is
either a magic attribute being picked up later or else is
being passed to the picker control down the line
(the latter assumption could be checked by perusing the code,
and it might throw a NameError – unless self.locale is
being initialzed to, say, None elsewhere…)
Karsten