]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | # This file was created automatically by SWIG. |
2 | import helpc | |
3 | ||
4 | from windows import * | |
5 | ||
6 | from misc import * | |
7 | ||
8 | from gdi import * | |
9 | ||
10 | from clip_dnd import * | |
11 | ||
12 | from controls import * | |
13 | ||
14 | from events import * | |
15 | ||
16 | # Help events | |
17 | def EVT_HELP(win, id, func): | |
18 | win.Connect(id, -1, wxEVT_HELP, func) | |
19 | ||
20 | def EVT_HELP_RANGE(win, id, id2, func): | |
21 | win.Connect(id, id2, wxEVT_HELP, func) | |
22 | ||
23 | def EVT_DETAILED_HELP(win, id, func): | |
24 | win.Connect(id, -1, wxEVT_DETAILED_HELP, func) | |
25 | ||
26 | def EVT_DETAILED_HELP_RANGE(win, id, id2, func): | |
27 | win.Connect(id, id2, wxEVT_DETAILED_HELP, func) | |
28 | ||
e6056257 RD |
29 | class wxHelpEventPtr(wxCommandEventPtr): |
30 | def __init__(self,this): | |
31 | self.this = this | |
32 | self.thisown = 0 | |
33 | def GetPosition(self, *_args, **_kwargs): | |
34 | val = apply(helpc.wxHelpEvent_GetPosition,(self,) + _args, _kwargs) | |
35 | if val: val = wxPointPtr(val) | |
36 | return val | |
37 | def SetPosition(self, *_args, **_kwargs): | |
38 | val = apply(helpc.wxHelpEvent_SetPosition,(self,) + _args, _kwargs) | |
39 | return val | |
40 | def GetLink(self, *_args, **_kwargs): | |
41 | val = apply(helpc.wxHelpEvent_GetLink,(self,) + _args, _kwargs) | |
42 | return val | |
43 | def SetLink(self, *_args, **_kwargs): | |
44 | val = apply(helpc.wxHelpEvent_SetLink,(self,) + _args, _kwargs) | |
45 | return val | |
46 | def GetTarget(self, *_args, **_kwargs): | |
47 | val = apply(helpc.wxHelpEvent_GetTarget,(self,) + _args, _kwargs) | |
48 | return val | |
49 | def SetTarget(self, *_args, **_kwargs): | |
50 | val = apply(helpc.wxHelpEvent_SetTarget,(self,) + _args, _kwargs) | |
51 | return val | |
52 | def __repr__(self): | |
53 | return "<C wxHelpEvent instance at %s>" % (self.this,) | |
54 | class wxHelpEvent(wxHelpEventPtr): | |
55 | def __init__(self,*_args,**_kwargs): | |
56 | self.this = apply(helpc.new_wxHelpEvent,_args,_kwargs) | |
57 | self.thisown = 1 | |
58 | ||
59 | ||
60 | ||
61 | ||
62 | class wxContextMenuEventPtr(wxCommandEventPtr): | |
63 | def __init__(self,this): | |
64 | self.this = this | |
65 | self.thisown = 0 | |
66 | def GetPosition(self, *_args, **_kwargs): | |
67 | val = apply(helpc.wxContextMenuEvent_GetPosition,(self,) + _args, _kwargs) | |
68 | if val: val = wxPointPtr(val) | |
69 | return val | |
70 | def SetPosition(self, *_args, **_kwargs): | |
71 | val = apply(helpc.wxContextMenuEvent_SetPosition,(self,) + _args, _kwargs) | |
72 | return val | |
73 | def __repr__(self): | |
74 | return "<C wxContextMenuEvent instance at %s>" % (self.this,) | |
75 | class wxContextMenuEvent(wxContextMenuEventPtr): | |
76 | def __init__(self,*_args,**_kwargs): | |
77 | self.this = apply(helpc.new_wxContextMenuEvent,_args,_kwargs) | |
78 | self.thisown = 1 | |
79 | ||
80 | ||
81 | ||
82 | ||
83 | class wxContextHelpPtr(wxObjectPtr): | |
84 | def __init__(self,this): | |
85 | self.this = this | |
86 | self.thisown = 0 | |
87 | def __del__(self,helpc=helpc): | |
88 | if self.thisown == 1 : | |
89 | helpc.delete_wxContextHelp(self) | |
90 | def BeginContextHelp(self, *_args, **_kwargs): | |
91 | val = apply(helpc.wxContextHelp_BeginContextHelp,(self,) + _args, _kwargs) | |
92 | return val | |
93 | def EndContextHelp(self, *_args, **_kwargs): | |
94 | val = apply(helpc.wxContextHelp_EndContextHelp,(self,) + _args, _kwargs) | |
95 | return val | |
96 | def __repr__(self): | |
97 | return "<C wxContextHelp instance at %s>" % (self.this,) | |
98 | class wxContextHelp(wxContextHelpPtr): | |
99 | def __init__(self,*_args,**_kwargs): | |
100 | self.this = apply(helpc.new_wxContextHelp,_args,_kwargs) | |
101 | self.thisown = 1 | |
102 | ||
103 | ||
104 | ||
105 | ||
106 | class wxContextHelpButtonPtr(wxBitmapButtonPtr): | |
107 | def __init__(self,this): | |
108 | self.this = this | |
109 | self.thisown = 0 | |
110 | def __repr__(self): | |
111 | return "<C wxContextHelpButton instance at %s>" % (self.this,) | |
112 | class wxContextHelpButton(wxContextHelpButtonPtr): | |
113 | def __init__(self,*_args,**_kwargs): | |
114 | self.this = apply(helpc.new_wxContextHelpButton,_args,_kwargs) | |
115 | self.thisown = 1 | |
116 | self._setOORInfo(self) | |
117 | ||
118 | ||
119 | ||
120 | ||
121 | class wxHelpProviderPtr : | |
122 | def __init__(self,this): | |
123 | self.this = this | |
124 | self.thisown = 0 | |
125 | def GetHelp(self, *_args, **_kwargs): | |
126 | val = apply(helpc.wxHelpProvider_GetHelp,(self,) + _args, _kwargs) | |
127 | return val | |
128 | def ShowHelp(self, *_args, **_kwargs): | |
129 | val = apply(helpc.wxHelpProvider_ShowHelp,(self,) + _args, _kwargs) | |
130 | return val | |
131 | def AddHelp(self, *_args, **_kwargs): | |
132 | val = apply(helpc.wxHelpProvider_AddHelp,(self,) + _args, _kwargs) | |
133 | return val | |
134 | def AddHelpById(self, *_args, **_kwargs): | |
135 | val = apply(helpc.wxHelpProvider_AddHelpById,(self,) + _args, _kwargs) | |
136 | return val | |
137 | def Destroy(self, *_args, **_kwargs): | |
138 | val = apply(helpc.wxHelpProvider_Destroy,(self,) + _args, _kwargs) | |
139 | return val | |
140 | def __repr__(self): | |
141 | return "<C wxHelpProvider instance at %s>" % (self.this,) | |
142 | class wxHelpProvider(wxHelpProviderPtr): | |
143 | def __init__(self,this): | |
144 | self.this = this | |
145 | ||
146 | ||
147 | ||
148 | ||
149 | class wxSimpleHelpProviderPtr(wxHelpProviderPtr): | |
150 | def __init__(self,this): | |
151 | self.this = this | |
152 | self.thisown = 0 | |
153 | def __repr__(self): | |
154 | return "<C wxSimpleHelpProvider instance at %s>" % (self.this,) | |
155 | class wxSimpleHelpProvider(wxSimpleHelpProviderPtr): | |
156 | def __init__(self,*_args,**_kwargs): | |
157 | self.this = apply(helpc.new_wxSimpleHelpProvider,_args,_kwargs) | |
158 | self.thisown = 1 | |
159 | ||
160 | ||
161 | ||
162 | ||
163 | ||
164 | ||
165 | #-------------- FUNCTION WRAPPERS ------------------ | |
166 | ||
167 | def wxHelpProvider_Set(*_args, **_kwargs): | |
168 | val = apply(helpc.wxHelpProvider_Set,_args,_kwargs) | |
169 | if val: val = wxHelpProviderPtr(val) | |
170 | return val | |
171 | ||
172 | def wxHelpProvider_Get(*_args, **_kwargs): | |
173 | val = apply(helpc.wxHelpProvider_Get,_args,_kwargs) | |
174 | if val: val = wxHelpProviderPtr(val) | |
175 | return val | |
176 | ||
177 | ||
178 | ||
179 | #-------------- VARIABLE WRAPPERS ------------------ | |
180 | ||
181 | wxFRAME_EX_CONTEXTHELP = helpc.wxFRAME_EX_CONTEXTHELP | |
182 | wxDIALOG_EX_CONTEXTHELP = helpc.wxDIALOG_EX_CONTEXTHELP | |
183 | wxID_CONTEXT_HELP = helpc.wxID_CONTEXT_HELP | |
184 | wxEVT_HELP = helpc.wxEVT_HELP | |
185 | wxEVT_DETAILED_HELP = helpc.wxEVT_DETAILED_HELP | |
e6056257 RD |
186 | |
187 | ||
188 | #-------------- USER INCLUDE ----------------------- | |
189 | ||
190 | # Stuff these names into the wx namespace so wxPyConstructObject can find them | |
191 | import wx | |
192 | wx.wxHelpEventPtr = wxHelpEventPtr | |
193 | wx.wxContextMenuEventPtr = wxContextMenuEventPtr |