Changeset 3301

Show
Ignore:
Timestamp:
07/31/07 10:38:09 (1 year ago)
Author:
paul
Message:

Fixed dShell to not overwrite the _() function with the result of the last function
call.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dShell.py

    r3290 r3301  
    2727    def _afterInit(self): 
    2828        super(_Shell, self)._afterInit() 
     29 
     30        # Workaround for the fact that otherwise, the global _() function will get 
     31        # replaced by the shell interpreter's default behavior of stuffing the  
     32        # results of the last function call into the global _(), resulting in all 
     33        # subsequent localization attempts failing: 
     34        self.interp.push("_ = _") 
     35 
    2936        # Set some font defaults 
    3037        plat = wx.Platform