More updates to the docview library modules and sample apps from the
ActiveGrid folks. Their sample IDE is now able to integrate with Subversion. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -194,10 +194,15 @@ class TextView(wx.lib.docview.View):
 | 
			
		||||
        if activate and self.GetCtrl():
 | 
			
		||||
            # In MDI mode just calling set focus doesn't work and in SDI mode using CallAfter causes an endless loop
 | 
			
		||||
            if self.GetDocumentManager().GetFlags() & wx.lib.docview.DOC_SDI:
 | 
			
		||||
                self.GetCtrl().SetFocus()
 | 
			
		||||
                self.SetFocus()
 | 
			
		||||
            else:
 | 
			
		||||
                wx.CallAfter(self.GetCtrl().SetFocus)
 | 
			
		||||
                   
 | 
			
		||||
                wx.CallAfter(self.SetFocus)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    def SetFocus(self):
 | 
			
		||||
        if self.GetCtrl():
 | 
			
		||||
            self.GetCtrl().SetFocus()
 | 
			
		||||
            
 | 
			
		||||
                                
 | 
			
		||||
    def OnClose(self, deleteWindow = True):
 | 
			
		||||
        if not wx.lib.docview.View.OnClose(self, deleteWindow):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user