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