2002-07-03 18:05:30 -04:00
|
|
|
# This file was created automatically by SWIG.
|
2004-01-13 20:51:52 -05:00
|
|
|
# Don't modify this file, modify the SWIG interface instead.
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
import _iewin
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-12-23 16:34:11 -05:00
|
|
|
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
|
|
|
if (name == "this"):
|
|
|
|
if isinstance(value, class_type):
|
|
|
|
self.__dict__[name] = value.this
|
|
|
|
if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
|
|
|
|
del value.thisown
|
|
|
|
return
|
|
|
|
method = class_type.__swig_setmethods__.get(name,None)
|
|
|
|
if method: return method(self,value)
|
|
|
|
if (not static) or hasattr(self,name) or (name == "thisown"):
|
|
|
|
self.__dict__[name] = value
|
|
|
|
else:
|
|
|
|
raise AttributeError("You cannot add attributes to %s" % self)
|
|
|
|
|
|
|
|
def _swig_setattr(self,class_type,name,value):
|
|
|
|
return _swig_setattr_nondynamic(self,class_type,name,value,0)
|
|
|
|
|
|
|
|
def _swig_getattr(self,class_type,name):
|
|
|
|
method = class_type.__swig_getmethods__.get(name,None)
|
|
|
|
if method: return method(self)
|
|
|
|
raise AttributeError,name
|
|
|
|
|
|
|
|
import types
|
|
|
|
try:
|
|
|
|
_object = types.ObjectType
|
|
|
|
_newclass = 1
|
|
|
|
except AttributeError:
|
|
|
|
class _object : pass
|
|
|
|
_newclass = 0
|
|
|
|
del types
|
|
|
|
|
|
|
|
|
|
|
|
def _swig_setattr_nondynamic_method(set):
|
|
|
|
def set_attr(self,name,value):
|
|
|
|
if hasattr(self,name) or (name in ("this", "thisown")):
|
|
|
|
set(self,name,value)
|
|
|
|
else:
|
|
|
|
raise AttributeError("You cannot add attributes to %s" % self)
|
|
|
|
return set_attr
|
|
|
|
|
|
|
|
|
2004-04-25 03:03:15 -04:00
|
|
|
import _core
|
|
|
|
wx = _core
|
2004-05-01 23:13:30 -04:00
|
|
|
__docfilter__ = wx.__DocFilter(globals())
|
2004-05-07 21:22:44 -04:00
|
|
|
import warnings
|
|
|
|
warnings.warn("This module is deprecated. Please use the wx.lib.iewin module instead.",
|
|
|
|
DeprecationWarning, stacklevel=2)
|
|
|
|
|
2004-04-25 03:03:15 -04:00
|
|
|
class MSHTMLEvent(_core.NotifyEvent):
|
2004-12-23 16:34:11 -05:00
|
|
|
"""Proxy of C++ MSHTMLEvent class"""
|
2004-01-13 20:51:52 -05:00
|
|
|
def __repr__(self):
|
|
|
|
return "<%s.%s; proxy of C++ wxMSHTMLEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
|
|
|
def __init__(self, *args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> MSHTMLEvent"""
|
2004-01-13 20:51:52 -05:00
|
|
|
newobj = _iewin.new_MSHTMLEvent(*args, **kwargs)
|
|
|
|
self.this = newobj.this
|
|
|
|
self.thisown = 1
|
|
|
|
del newobj.thisown
|
|
|
|
def GetText1(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GetText1(self) -> String"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.MSHTMLEvent_GetText1(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GetLong1(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GetLong1(self) -> long"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.MSHTMLEvent_GetLong1(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GetLong2(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GetLong2(self) -> long"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.MSHTMLEvent_GetLong2(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
class MSHTMLEventPtr(MSHTMLEvent):
|
|
|
|
def __init__(self, this):
|
2002-07-03 18:05:30 -04:00
|
|
|
self.this = this
|
2004-01-13 20:51:52 -05:00
|
|
|
if not hasattr(self,"thisown"): self.thisown = 0
|
|
|
|
self.__class__ = MSHTMLEvent
|
|
|
|
_iewin.MSHTMLEvent_swigregister(MSHTMLEventPtr)
|
|
|
|
|
|
|
|
wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2 = _iewin.wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2
|
|
|
|
wxEVT_COMMAND_MSHTML_NEWWINDOW2 = _iewin.wxEVT_COMMAND_MSHTML_NEWWINDOW2
|
|
|
|
wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE = _iewin.wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE
|
|
|
|
wxEVT_COMMAND_MSHTML_PROGRESSCHANGE = _iewin.wxEVT_COMMAND_MSHTML_PROGRESSCHANGE
|
|
|
|
wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE = _iewin.wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE
|
|
|
|
wxEVT_COMMAND_MSHTML_TITLECHANGE = _iewin.wxEVT_COMMAND_MSHTML_TITLECHANGE
|
|
|
|
EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
|
|
|
|
EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
|
|
|
|
EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
|
|
|
|
EVT_MSHTML_PROGRESSCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, 1)
|
|
|
|
EVT_MSHTML_STATUSTEXTCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, 1)
|
|
|
|
EVT_MSHTML_TITLECHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_TITLECHANGE, 1)
|
|
|
|
|
|
|
|
IEHTML_REFRESH_NORMAL = _iewin.IEHTML_REFRESH_NORMAL
|
|
|
|
IEHTML_REFRESH_IFEXPIRED = _iewin.IEHTML_REFRESH_IFEXPIRED
|
|
|
|
IEHTML_REFRESH_CONTINUE = _iewin.IEHTML_REFRESH_CONTINUE
|
|
|
|
IEHTML_REFRESH_COMPLETELY = _iewin.IEHTML_REFRESH_COMPLETELY
|
2004-04-25 03:03:15 -04:00
|
|
|
class IEHtmlWin(_core.Window):
|
2004-12-23 16:34:11 -05:00
|
|
|
"""Proxy of C++ IEHtmlWin class"""
|
2002-07-03 18:05:30 -04:00
|
|
|
def __repr__(self):
|
2004-01-13 20:51:52 -05:00
|
|
|
return "<%s.%s; proxy of C++ wxIEHtmlWin instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
"""
|
2004-04-24 20:47:48 -04:00
|
|
|
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
2004-01-13 20:51:52 -05:00
|
|
|
Size size=DefaultSize, long style=0, String name=PanelNameStr) -> IEHtmlWin
|
|
|
|
"""
|
|
|
|
newobj = _iewin.new_IEHtmlWin(*args, **kwargs)
|
|
|
|
self.this = newobj.this
|
2002-07-03 18:05:30 -04:00
|
|
|
self.thisown = 1
|
2004-01-13 20:51:52 -05:00
|
|
|
del newobj.thisown
|
|
|
|
self._setOORInfo(self)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def LoadUrl(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""LoadUrl(self, String ??)"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_LoadUrl(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def LoadString(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""LoadString(self, String html) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_LoadString(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def LoadStream(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""LoadStream(self, InputStream is) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_LoadStream(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
Navigate = LoadUrl
|
|
|
|
def SetCharset(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""SetCharset(self, String charset)"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_SetCharset(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def SetEditMode(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""SetEditMode(self, bool seton)"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_SetEditMode(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GetEditMode(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GetEditMode(self) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_GetEditMode(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GetStringSelection(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GetStringSelection(self, bool asHTML=False) -> String"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_GetStringSelection(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GetText(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GetText(self, bool asHTML=False) -> String"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_GetText(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GoBack(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GoBack(self) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_GoBack(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GoForward(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GoForward(self) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_GoForward(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GoHome(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GoHome(self) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_GoHome(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def GoSearch(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GoSearch(self) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_GoSearch(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def RefreshPage(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""RefreshPage(self, int level) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_RefreshPage(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
def Stop(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""Stop(self) -> bool"""
|
2004-01-13 20:51:52 -05:00
|
|
|
return _iewin.IEHtmlWin_Stop(*args, **kwargs)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
|
|
|
|
2004-01-13 20:51:52 -05:00
|
|
|
class IEHtmlWinPtr(IEHtmlWin):
|
|
|
|
def __init__(self, this):
|
|
|
|
self.this = this
|
|
|
|
if not hasattr(self,"thisown"): self.thisown = 0
|
|
|
|
self.__class__ = IEHtmlWin
|
|
|
|
_iewin.IEHtmlWin_swigregister(IEHtmlWinPtr)
|
2002-07-03 18:05:30 -04:00
|
|
|
|
|
|
|
|