Changeset 1487 for trunk/peppy/main.py

Show
Ignore:
Timestamp:
07/10/08 22:43:13 (4 months ago)
Author:
rob
Message:

Removed the CallAfter? in OnTabChanged? to prevent an extra tab change back to the original tab after a minibuffer
* changed the descruction order of minibuffer
* FIXME: somewhere there's a bad SetFocus? call in a CallAfter?:

Traceback (most recent call last):

File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14550, in <lambda>

lambda event: event.callable(*event.args, **event.kw) )

File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 9235, in SetFocus?

return _core_.Window_SetFocus(*args, **kwargs)

TypeError?: in method 'Window_SetFocus', expected argument 1 of type 'wxWindow *'

but it doesn't affect operation and it's better than leaving the code in a broken state on svn. Will fix ASAP.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/peppy/main.py

    r1479 r1487  
    2727from peppy.lib.processmanager import * 
    2828from peppy.lib.textutil import piglatin 
     29 
     30OrigCallAfter = wx.CallAfter 
     31def NewCallAfter(*args, **kwargs): 
     32    dprint("CallAfter: args=%s kwargs=%s" % (str(args), str(kwargs))) 
     33    OrigCallAfter(*args, **kwargs) 
     34    #wx.GetApp().cooperativeYield() 
     35wx.CallAfter = NewCallAfter 
    2936 
    3037#### py2exe support