mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
typos
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//--------------------------------------------------------------------------
|
||||
// Name: src/stockobj.sip
|
||||
// Purpose: Wraper definition and some Python code for wxStockGDI and
|
||||
// Purpose: Wrapper definition and some Python code for wxStockGDI and
|
||||
// using it to initialize the stock objects like wx.BLUE_BRUSH,
|
||||
// etc. We're putting it here because wxStockGDI is not
|
||||
// documented, and probably should not be.
|
||||
|
||||
@@ -63,7 +63,7 @@ class ActiveXCtrl(wx.PyAxBaseWindow):
|
||||
the ActiveX control is accessible through the ctrl property of
|
||||
this class, and this class is also set as the event sink for COM
|
||||
events originating from the ActiveX control. In other words, to
|
||||
catch the COM events you mearly have to derive from this class and
|
||||
catch the COM events you merely have to derive from this class and
|
||||
provide a method with the correct name. See the comtypes package
|
||||
documentation for more details.
|
||||
"""
|
||||
@@ -128,14 +128,16 @@ class ActiveXCtrl(wx.PyAxBaseWindow):
|
||||
self.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
|
||||
self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
|
||||
self.Bind(wx.EVT_WINDOW_DESTROY, self.OnDestroyWindow)
|
||||
|
||||
|
||||
|
||||
def AddEventSink(self, sink, interface=None):
|
||||
"""
|
||||
Add a new target to search for method names that match the COM
|
||||
Event names.
|
||||
"""
|
||||
self._evt_connections.append(cc.GetEvents(self._ax, sink, interface))
|
||||
|
||||
|
||||
|
||||
def GetCtrl(self):
|
||||
"""Easy access to the COM interface for the ActiveX Control"""
|
||||
return self._ax
|
||||
|
||||
Reference in New Issue
Block a user