[win32] - wx.Locale(wxlang) call before wx.App() call error

Bug #501602 reported by Karel Kolman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wxBanker
Fix Released
Medium
Unassigned

Bug Description

Running current trunk wxbanker version on windows, a messagebox with the following info appears:

Debug: ..\..\src\common\stdpbase.cpp(56): assert "traits" failed in wxStandardPathsBase::Get(): create wxApp before calling this

i traced it to the last line of localization.py

wxlocale = wx.Locale(wxlang)

It seems that wx.Locale needs a wx.App to be created beforehand.

Related branches

Revision history for this message
Michael Rooney (mrooney) wrote :

Ah yes, this happens on OSX too I see now. This seems like it could be a pain since the Controller creates the wx.App traditionally; I wonder if there is a simple way to fix this.

Changed in wxbanker:
importance: Undecided → Medium
milestone: none → 0.7
status: New → Confirmed
Revision history for this message
Karel Kolman (kolmis) wrote :

move the wx i18n initialization into a function, call it after wx.App() is created

Revision history for this message
Michael Rooney (mrooney) wrote :

Thanks, that's better than my original approach of having the Controller do it. Applied with some changes in revision 464!

Changed in wxbanker:
status: Confirmed → Fix Committed
Michael Rooney (mrooney)
Changed in wxbanker:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.