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