]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/iewin/iewin.py
Add GetMaxTotalWidth
[wxWidgets.git] / wxPython / contrib / iewin / iewin.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 import _iewin
5
6 import core
7 wx = core
8 class MSHTMLEvent(core.NotifyEvent):
9 def __repr__(self):
10 return "<%s.%s; proxy of C++ wxMSHTMLEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
11 def __init__(self, *args, **kwargs):
12 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> MSHTMLEvent"""
13 newobj = _iewin.new_MSHTMLEvent(*args, **kwargs)
14 self.this = newobj.this
15 self.thisown = 1
16 del newobj.thisown
17 def GetText1(*args, **kwargs):
18 """GetText1() -> String"""
19 return _iewin.MSHTMLEvent_GetText1(*args, **kwargs)
20
21 def GetLong1(*args, **kwargs):
22 """GetLong1() -> long"""
23 return _iewin.MSHTMLEvent_GetLong1(*args, **kwargs)
24
25 def GetLong2(*args, **kwargs):
26 """GetLong2() -> long"""
27 return _iewin.MSHTMLEvent_GetLong2(*args, **kwargs)
28
29
30 class MSHTMLEventPtr(MSHTMLEvent):
31 def __init__(self, this):
32 self.this = this
33 if not hasattr(self,"thisown"): self.thisown = 0
34 self.__class__ = MSHTMLEvent
35 _iewin.MSHTMLEvent_swigregister(MSHTMLEventPtr)
36
37 wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2 = _iewin.wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2
38 wxEVT_COMMAND_MSHTML_NEWWINDOW2 = _iewin.wxEVT_COMMAND_MSHTML_NEWWINDOW2
39 wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE = _iewin.wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE
40 wxEVT_COMMAND_MSHTML_PROGRESSCHANGE = _iewin.wxEVT_COMMAND_MSHTML_PROGRESSCHANGE
41 wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE = _iewin.wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE
42 wxEVT_COMMAND_MSHTML_TITLECHANGE = _iewin.wxEVT_COMMAND_MSHTML_TITLECHANGE
43 EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
44 EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
45 EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
46 EVT_MSHTML_PROGRESSCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, 1)
47 EVT_MSHTML_STATUSTEXTCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, 1)
48 EVT_MSHTML_TITLECHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_TITLECHANGE, 1)
49
50 IEHTML_REFRESH_NORMAL = _iewin.IEHTML_REFRESH_NORMAL
51 IEHTML_REFRESH_IFEXPIRED = _iewin.IEHTML_REFRESH_IFEXPIRED
52 IEHTML_REFRESH_CONTINUE = _iewin.IEHTML_REFRESH_CONTINUE
53 IEHTML_REFRESH_COMPLETELY = _iewin.IEHTML_REFRESH_COMPLETELY
54 class IEHtmlWin(core.Window):
55 def __repr__(self):
56 return "<%s.%s; proxy of C++ wxIEHtmlWin instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
57 def __init__(self, *args, **kwargs):
58 """
59 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
60 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> IEHtmlWin
61 """
62 newobj = _iewin.new_IEHtmlWin(*args, **kwargs)
63 self.this = newobj.this
64 self.thisown = 1
65 del newobj.thisown
66 self._setOORInfo(self)
67
68 def LoadUrl(*args, **kwargs):
69 """LoadUrl(String ??)"""
70 return _iewin.IEHtmlWin_LoadUrl(*args, **kwargs)
71
72 def LoadString(*args, **kwargs):
73 """LoadString(String html) -> bool"""
74 return _iewin.IEHtmlWin_LoadString(*args, **kwargs)
75
76 def LoadStream(*args, **kwargs):
77 """LoadStream(InputStream is) -> bool"""
78 return _iewin.IEHtmlWin_LoadStream(*args, **kwargs)
79
80 Navigate = LoadUrl
81 def SetCharset(*args, **kwargs):
82 """SetCharset(String charset)"""
83 return _iewin.IEHtmlWin_SetCharset(*args, **kwargs)
84
85 def SetEditMode(*args, **kwargs):
86 """SetEditMode(bool seton)"""
87 return _iewin.IEHtmlWin_SetEditMode(*args, **kwargs)
88
89 def GetEditMode(*args, **kwargs):
90 """GetEditMode() -> bool"""
91 return _iewin.IEHtmlWin_GetEditMode(*args, **kwargs)
92
93 def GetStringSelection(*args, **kwargs):
94 """GetStringSelection(bool asHTML=False) -> String"""
95 return _iewin.IEHtmlWin_GetStringSelection(*args, **kwargs)
96
97 def GetText(*args, **kwargs):
98 """GetText(bool asHTML=False) -> String"""
99 return _iewin.IEHtmlWin_GetText(*args, **kwargs)
100
101 def GoBack(*args, **kwargs):
102 """GoBack() -> bool"""
103 return _iewin.IEHtmlWin_GoBack(*args, **kwargs)
104
105 def GoForward(*args, **kwargs):
106 """GoForward() -> bool"""
107 return _iewin.IEHtmlWin_GoForward(*args, **kwargs)
108
109 def GoHome(*args, **kwargs):
110 """GoHome() -> bool"""
111 return _iewin.IEHtmlWin_GoHome(*args, **kwargs)
112
113 def GoSearch(*args, **kwargs):
114 """GoSearch() -> bool"""
115 return _iewin.IEHtmlWin_GoSearch(*args, **kwargs)
116
117 def RefreshPage(*args, **kwargs):
118 """RefreshPage(int level) -> bool"""
119 return _iewin.IEHtmlWin_RefreshPage(*args, **kwargs)
120
121 def Stop(*args, **kwargs):
122 """Stop() -> bool"""
123 return _iewin.IEHtmlWin_Stop(*args, **kwargs)
124
125
126 class IEHtmlWinPtr(IEHtmlWin):
127 def __init__(self, this):
128 self.this = this
129 if not hasattr(self,"thisown"): self.thisown = 0
130 self.__class__ = IEHtmlWin
131 _iewin.IEHtmlWin_swigregister(IEHtmlWinPtr)
132
133