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