Changeset 1487 for trunk/peppy/frame.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/frame.py

    r1462 r1487  
    7777 
    7878class MyNotebook(wx.aui.AuiNotebook, debugmixin): 
     79    debuglevel = 1 
     80     
    7981    def __init__(self, parent, size=wx.DefaultSize): 
    8082        wx.aui.AuiNotebook.__init__(self, parent, size=size, style=wx.aui.AUI_NB_WINDOWLIST_BUTTON|wx.aui.AUI_NB_TAB_MOVE|wx.aui.AUI_NB_TAB_SPLIT|wx.aui.AUI_NB_CLOSE_BUTTON|wx.aui.AUI_NB_SCROLL_BUTTONS, pos=(9000,9000)) 
     
    100102            self.lastActivePage=None 
    101103        page=self.GetPage(newpage) 
    102         wx.CallAfter(self.frame.switchMode) 
     104        #wx.CallAfter(self.frame.switchMode) 
     105        self.frame.switchMode() 
    103106        evt.Skip() 
    104107 
     
    322325 
    323326class BufferFrame(wx.Frame, ClassPrefs, debugmixin): 
     327    debuglevel = 1 
    324328    frameid=0 
    325329    load_error_count = 0