]>
Commit | Line | Data |
---|---|---|
8ab979d7 RD |
1 | # This file was created automatically by SWIG. |
2 | import windows2c | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from gdi import * | |
7 | ||
8 | from windows import * | |
9 | ||
b1462dfa RD |
10 | from clip_dnd import * |
11 | ||
8ab979d7 RD |
12 | from controls import * |
13 | ||
14 | from events import * | |
b8b8dda7 | 15 | import wx |
bb0054cd | 16 | class wxNotebookEventPtr(wxNotifyEventPtr): |
8ab979d7 RD |
17 | def __init__(self,this): |
18 | self.this = this | |
19 | self.thisown = 0 | |
1d99702e RD |
20 | def GetSelection(self, *_args, **_kwargs): |
21 | val = apply(windows2c.wxNotebookEvent_GetSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 22 | return val |
1d99702e RD |
23 | def GetOldSelection(self, *_args, **_kwargs): |
24 | val = apply(windows2c.wxNotebookEvent_GetOldSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 25 | return val |
1d99702e RD |
26 | def SetOldSelection(self, *_args, **_kwargs): |
27 | val = apply(windows2c.wxNotebookEvent_SetOldSelection,(self,) + _args, _kwargs) | |
bb0054cd | 28 | return val |
1d99702e RD |
29 | def SetSelection(self, *_args, **_kwargs): |
30 | val = apply(windows2c.wxNotebookEvent_SetSelection,(self,) + _args, _kwargs) | |
bb0054cd | 31 | return val |
8ab979d7 | 32 | def __repr__(self): |
1d99702e | 33 | return "<C wxNotebookEvent instance at %s>" % (self.this,) |
8ab979d7 | 34 | class wxNotebookEvent(wxNotebookEventPtr): |
09f3d4e6 RD |
35 | def __init__(self,*_args,**_kwargs): |
36 | self.this = apply(windows2c.new_wxNotebookEvent,_args,_kwargs) | |
37 | self.thisown = 1 | |
8ab979d7 RD |
38 | |
39 | ||
40 | ||
41 | ||
42 | class wxNotebookPtr(wxControlPtr): | |
43 | def __init__(self,this): | |
44 | self.this = this | |
45 | self.thisown = 0 | |
09f3d4e6 RD |
46 | def Create(self, *_args, **_kwargs): |
47 | val = apply(windows2c.wxNotebook_Create,(self,) + _args, _kwargs) | |
48 | return val | |
1d99702e RD |
49 | def GetPageCount(self, *_args, **_kwargs): |
50 | val = apply(windows2c.wxNotebook_GetPageCount,(self,) + _args, _kwargs) | |
8ab979d7 | 51 | return val |
1d99702e RD |
52 | def SetSelection(self, *_args, **_kwargs): |
53 | val = apply(windows2c.wxNotebook_SetSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 54 | return val |
1d99702e RD |
55 | def AdvanceSelection(self, *_args, **_kwargs): |
56 | val = apply(windows2c.wxNotebook_AdvanceSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 57 | return val |
1d99702e RD |
58 | def GetSelection(self, *_args, **_kwargs): |
59 | val = apply(windows2c.wxNotebook_GetSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 60 | return val |
1d99702e RD |
61 | def SetPageText(self, *_args, **_kwargs): |
62 | val = apply(windows2c.wxNotebook_SetPageText,(self,) + _args, _kwargs) | |
8ab979d7 | 63 | return val |
1d99702e RD |
64 | def GetPageText(self, *_args, **_kwargs): |
65 | val = apply(windows2c.wxNotebook_GetPageText,(self,) + _args, _kwargs) | |
8ab979d7 | 66 | return val |
1d99702e RD |
67 | def SetImageList(self, *_args, **_kwargs): |
68 | val = apply(windows2c.wxNotebook_SetImageList,(self,) + _args, _kwargs) | |
8ab979d7 | 69 | return val |
949853a4 RD |
70 | def AssignImageList(self, *_args, **_kwargs): |
71 | val = apply(windows2c.wxNotebook_AssignImageList,(self,) + _args, _kwargs) | |
72 | _args[0].thisown = 0 | |
73 | return val | |
1d99702e RD |
74 | def GetImageList(self, *_args, **_kwargs): |
75 | val = apply(windows2c.wxNotebook_GetImageList,(self,) + _args, _kwargs) | |
8ab979d7 | 76 | return val |
1d99702e RD |
77 | def GetPageImage(self, *_args, **_kwargs): |
78 | val = apply(windows2c.wxNotebook_GetPageImage,(self,) + _args, _kwargs) | |
8ab979d7 | 79 | return val |
1d99702e RD |
80 | def SetPageImage(self, *_args, **_kwargs): |
81 | val = apply(windows2c.wxNotebook_SetPageImage,(self,) + _args, _kwargs) | |
8ab979d7 | 82 | return val |
1d99702e RD |
83 | def GetRowCount(self, *_args, **_kwargs): |
84 | val = apply(windows2c.wxNotebook_GetRowCount,(self,) + _args, _kwargs) | |
8ab979d7 | 85 | return val |
c368d904 RD |
86 | def SetPageSize(self, *_args, **_kwargs): |
87 | val = apply(windows2c.wxNotebook_SetPageSize,(self,) + _args, _kwargs) | |
88 | return val | |
89 | def SetPadding(self, *_args, **_kwargs): | |
90 | val = apply(windows2c.wxNotebook_SetPadding,(self,) + _args, _kwargs) | |
91 | return val | |
1d99702e RD |
92 | def DeletePage(self, *_args, **_kwargs): |
93 | val = apply(windows2c.wxNotebook_DeletePage,(self,) + _args, _kwargs) | |
8ab979d7 | 94 | return val |
1d99702e RD |
95 | def RemovePage(self, *_args, **_kwargs): |
96 | val = apply(windows2c.wxNotebook_RemovePage,(self,) + _args, _kwargs) | |
cf694132 | 97 | return val |
1d99702e RD |
98 | def DeleteAllPages(self, *_args, **_kwargs): |
99 | val = apply(windows2c.wxNotebook_DeleteAllPages,(self,) + _args, _kwargs) | |
8ab979d7 | 100 | return val |
1d99702e RD |
101 | def AddPage(self, *_args, **_kwargs): |
102 | val = apply(windows2c.wxNotebook_AddPage,(self,) + _args, _kwargs) | |
8ab979d7 | 103 | return val |
1d99702e RD |
104 | def InsertPage(self, *_args, **_kwargs): |
105 | val = apply(windows2c.wxNotebook_InsertPage,(self,) + _args, _kwargs) | |
8ab979d7 | 106 | return val |
1d99702e RD |
107 | def GetPage(self, *_args, **_kwargs): |
108 | val = apply(windows2c.wxNotebook_GetPage,(self,) + _args, _kwargs) | |
8ab979d7 | 109 | return val |
1d99702e RD |
110 | def ResizeChildren(self, *_args, **_kwargs): |
111 | val = apply(windows2c.wxNotebook_ResizeChildren,(self,) + _args, _kwargs) | |
cf694132 | 112 | return val |
8ab979d7 | 113 | def __repr__(self): |
1d99702e | 114 | return "<C wxNotebook instance at %s>" % (self.this,) |
8ab979d7 | 115 | class wxNotebook(wxNotebookPtr): |
1d99702e RD |
116 | def __init__(self,*_args,**_kwargs): |
117 | self.this = apply(windows2c.new_wxNotebook,_args,_kwargs) | |
8ab979d7 | 118 | self.thisown = 1 |
9c039d08 RD |
119 | |
120 | ||
121 | ||
09f3d4e6 RD |
122 | def wxPreNotebook(*_args,**_kwargs): |
123 | val = wxNotebookPtr(apply(windows2c.new_wxPreNotebook,_args,_kwargs)) | |
124 | val.thisown = 1 | |
125 | return val | |
126 | ||
9c039d08 | 127 | |
bb0054cd RD |
128 | class wxSplitterEventPtr(wxCommandEventPtr): |
129 | def __init__(self,this): | |
130 | self.this = this | |
131 | self.thisown = 0 | |
1d99702e RD |
132 | def GetSashPosition(self, *_args, **_kwargs): |
133 | val = apply(windows2c.wxSplitterEvent_GetSashPosition,(self,) + _args, _kwargs) | |
bb0054cd | 134 | return val |
1d99702e RD |
135 | def GetX(self, *_args, **_kwargs): |
136 | val = apply(windows2c.wxSplitterEvent_GetX,(self,) + _args, _kwargs) | |
bb0054cd | 137 | return val |
1d99702e RD |
138 | def GetY(self, *_args, **_kwargs): |
139 | val = apply(windows2c.wxSplitterEvent_GetY,(self,) + _args, _kwargs) | |
bb0054cd | 140 | return val |
1d99702e RD |
141 | def GetWindowBeingRemoved(self, *_args, **_kwargs): |
142 | val = apply(windows2c.wxSplitterEvent_GetWindowBeingRemoved,(self,) + _args, _kwargs) | |
bb0054cd | 143 | return val |
1d99702e RD |
144 | def SetSashPosition(self, *_args, **_kwargs): |
145 | val = apply(windows2c.wxSplitterEvent_SetSashPosition,(self,) + _args, _kwargs) | |
bb0054cd RD |
146 | return val |
147 | def __repr__(self): | |
1d99702e | 148 | return "<C wxSplitterEvent instance at %s>" % (self.this,) |
bb0054cd | 149 | class wxSplitterEvent(wxSplitterEventPtr): |
09f3d4e6 RD |
150 | def __init__(self,*_args,**_kwargs): |
151 | self.this = apply(windows2c.new_wxSplitterEvent,_args,_kwargs) | |
152 | self.thisown = 1 | |
bb0054cd RD |
153 | |
154 | ||
155 | ||
156 | ||
9c039d08 RD |
157 | class wxSplitterWindowPtr(wxWindowPtr): |
158 | def __init__(self,this): | |
159 | self.this = this | |
160 | self.thisown = 0 | |
09f3d4e6 RD |
161 | def Create(self, *_args, **_kwargs): |
162 | val = apply(windows2c.wxSplitterWindow_Create,(self,) + _args, _kwargs) | |
9c039d08 | 163 | return val |
1d99702e RD |
164 | def GetWindow1(self, *_args, **_kwargs): |
165 | val = apply(windows2c.wxSplitterWindow_GetWindow1,(self,) + _args, _kwargs) | |
9c039d08 | 166 | return val |
1d99702e RD |
167 | def GetWindow2(self, *_args, **_kwargs): |
168 | val = apply(windows2c.wxSplitterWindow_GetWindow2,(self,) + _args, _kwargs) | |
9c039d08 | 169 | return val |
09f3d4e6 RD |
170 | def SetSplitMode(self, *_args, **_kwargs): |
171 | val = apply(windows2c.wxSplitterWindow_SetSplitMode,(self,) + _args, _kwargs) | |
172 | return val | |
173 | def GetSplitMode(self, *_args, **_kwargs): | |
174 | val = apply(windows2c.wxSplitterWindow_GetSplitMode,(self,) + _args, _kwargs) | |
175 | return val | |
1d99702e RD |
176 | def Initialize(self, *_args, **_kwargs): |
177 | val = apply(windows2c.wxSplitterWindow_Initialize,(self,) + _args, _kwargs) | |
9c039d08 | 178 | return val |
09f3d4e6 RD |
179 | def SplitVertically(self, *_args, **_kwargs): |
180 | val = apply(windows2c.wxSplitterWindow_SplitVertically,(self,) + _args, _kwargs) | |
181 | return val | |
182 | def SplitHorizontally(self, *_args, **_kwargs): | |
183 | val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self,) + _args, _kwargs) | |
184 | return val | |
185 | def Unsplit(self, *_args, **_kwargs): | |
186 | val = apply(windows2c.wxSplitterWindow_Unsplit,(self,) + _args, _kwargs) | |
9c039d08 | 187 | return val |
9d8bd15f RD |
188 | def ReplaceWindow(self, *_args, **_kwargs): |
189 | val = apply(windows2c.wxSplitterWindow_ReplaceWindow,(self,) + _args, _kwargs) | |
190 | return val | |
09f3d4e6 RD |
191 | def IsSplit(self, *_args, **_kwargs): |
192 | val = apply(windows2c.wxSplitterWindow_IsSplit,(self,) + _args, _kwargs) | |
193 | return val | |
194 | def SetSashSize(self, *_args, **_kwargs): | |
195 | val = apply(windows2c.wxSplitterWindow_SetSashSize,(self,) + _args, _kwargs) | |
196 | return val | |
1d99702e RD |
197 | def SetBorderSize(self, *_args, **_kwargs): |
198 | val = apply(windows2c.wxSplitterWindow_SetBorderSize,(self,) + _args, _kwargs) | |
b639c3c5 | 199 | return val |
09f3d4e6 RD |
200 | def GetSashSize(self, *_args, **_kwargs): |
201 | val = apply(windows2c.wxSplitterWindow_GetSashSize,(self,) + _args, _kwargs) | |
202 | return val | |
203 | def GetBorderSize(self, *_args, **_kwargs): | |
204 | val = apply(windows2c.wxSplitterWindow_GetBorderSize,(self,) + _args, _kwargs) | |
205 | return val | |
1d99702e RD |
206 | def SetSashPosition(self, *_args, **_kwargs): |
207 | val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self,) + _args, _kwargs) | |
9c039d08 | 208 | return val |
09f3d4e6 RD |
209 | def GetSashPosition(self, *_args, **_kwargs): |
210 | val = apply(windows2c.wxSplitterWindow_GetSashPosition,(self,) + _args, _kwargs) | |
b639c3c5 | 211 | return val |
1d99702e RD |
212 | def SetMinimumPaneSize(self, *_args, **_kwargs): |
213 | val = apply(windows2c.wxSplitterWindow_SetMinimumPaneSize,(self,) + _args, _kwargs) | |
9c039d08 | 214 | return val |
09f3d4e6 RD |
215 | def GetMinimumPaneSize(self, *_args, **_kwargs): |
216 | val = apply(windows2c.wxSplitterWindow_GetMinimumPaneSize,(self,) + _args, _kwargs) | |
9c039d08 RD |
217 | return val |
218 | def __repr__(self): | |
1d99702e | 219 | return "<C wxSplitterWindow instance at %s>" % (self.this,) |
9c039d08 | 220 | class wxSplitterWindow(wxSplitterWindowPtr): |
1d99702e RD |
221 | def __init__(self,*_args,**_kwargs): |
222 | self.this = apply(windows2c.new_wxSplitterWindow,_args,_kwargs) | |
9c039d08 | 223 | self.thisown = 1 |
8ab979d7 RD |
224 | |
225 | ||
226 | ||
09f3d4e6 RD |
227 | def wxPreSplitterWindow(*_args,**_kwargs): |
228 | val = wxSplitterWindowPtr(apply(windows2c.new_wxPreSplitterWindow,_args,_kwargs)) | |
229 | val.thisown = 1 | |
230 | return val | |
231 | ||
8ab979d7 | 232 | |
b639c3c5 RD |
233 | class wxTaskBarIconPtr(wxEvtHandlerPtr): |
234 | def __init__(self,this): | |
235 | self.this = this | |
236 | self.thisown = 0 | |
1d99702e | 237 | def __del__(self,windows2c=windows2c): |
b639c3c5 | 238 | if self.thisown == 1 : |
1d99702e RD |
239 | windows2c.delete_wxTaskBarIcon(self) |
240 | def SetIcon(self, *_args, **_kwargs): | |
241 | val = apply(windows2c.wxTaskBarIcon_SetIcon,(self,) + _args, _kwargs) | |
b639c3c5 | 242 | return val |
1d99702e RD |
243 | def RemoveIcon(self, *_args, **_kwargs): |
244 | val = apply(windows2c.wxTaskBarIcon_RemoveIcon,(self,) + _args, _kwargs) | |
b639c3c5 | 245 | return val |
1d99702e RD |
246 | def PopupMenu(self, *_args, **_kwargs): |
247 | val = apply(windows2c.wxTaskBarIcon_PopupMenu,(self,) + _args, _kwargs) | |
be4d9c1f | 248 | return val |
c368d904 RD |
249 | def IsIconInstalled(self, *_args, **_kwargs): |
250 | val = apply(windows2c.wxTaskBarIcon_IsIconInstalled,(self,) + _args, _kwargs) | |
251 | return val | |
252 | def IsOK(self, *_args, **_kwargs): | |
253 | val = apply(windows2c.wxTaskBarIcon_IsOK,(self,) + _args, _kwargs) | |
254 | return val | |
b639c3c5 | 255 | def __repr__(self): |
1d99702e | 256 | return "<C wxTaskBarIcon instance at %s>" % (self.this,) |
b639c3c5 | 257 | class wxTaskBarIcon(wxTaskBarIconPtr): |
1d99702e RD |
258 | def __init__(self,*_args,**_kwargs): |
259 | self.this = apply(windows2c.new_wxTaskBarIcon,_args,_kwargs) | |
b639c3c5 | 260 | self.thisown = 1 |
b8b8dda7 RD |
261 | wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE) |
262 | wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN) | |
263 | wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP) | |
264 | wx._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN) | |
265 | wx._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP) | |
266 | wx._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK) | |
267 | wx._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK) | |
b639c3c5 RD |
268 | |
269 | ||
270 | ||
271 | ||
8ab979d7 RD |
272 | |
273 | ||
274 | #-------------- FUNCTION WRAPPERS ------------------ | |
275 | ||
276 | ||
277 | ||
278 | #-------------- VARIABLE WRAPPERS ------------------ | |
279 | ||
1b62f00d RD |
280 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = windows2c.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED |
281 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = windows2c.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING | |
282 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = windows2c.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING | |
283 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = windows2c.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED | |
284 | wxEVT_COMMAND_SPLITTER_UNSPLIT = windows2c.wxEVT_COMMAND_SPLITTER_UNSPLIT | |
285 | wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = windows2c.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED | |
f6bcfd97 BP |
286 | wxSPLIT_HORIZONTAL = windows2c.wxSPLIT_HORIZONTAL |
287 | wxSPLIT_VERTICAL = windows2c.wxSPLIT_VERTICAL | |
288 | wxSPLIT_DRAG_NONE = windows2c.wxSPLIT_DRAG_NONE | |
289 | wxSPLIT_DRAG_DRAGGING = windows2c.wxSPLIT_DRAG_DRAGGING | |
290 | wxSPLIT_DRAG_LEFT_DOWN = windows2c.wxSPLIT_DRAG_LEFT_DOWN | |
b639c3c5 RD |
291 | wxEVT_TASKBAR_MOVE = windows2c.wxEVT_TASKBAR_MOVE |
292 | wxEVT_TASKBAR_LEFT_DOWN = windows2c.wxEVT_TASKBAR_LEFT_DOWN | |
293 | wxEVT_TASKBAR_LEFT_UP = windows2c.wxEVT_TASKBAR_LEFT_UP | |
294 | wxEVT_TASKBAR_RIGHT_DOWN = windows2c.wxEVT_TASKBAR_RIGHT_DOWN | |
295 | wxEVT_TASKBAR_RIGHT_UP = windows2c.wxEVT_TASKBAR_RIGHT_UP | |
296 | wxEVT_TASKBAR_LEFT_DCLICK = windows2c.wxEVT_TASKBAR_LEFT_DCLICK | |
297 | wxEVT_TASKBAR_RIGHT_DCLICK = windows2c.wxEVT_TASKBAR_RIGHT_DCLICK |