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