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