]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/frames.py
added functions to read/write several elements at once (patch 754986)
[wxWidgets.git] / wxPython / src / msw / frames.py
CommitLineData
9c039d08
RD
1# This file was created automatically by SWIG.
2import framesc
3
4from misc import *
5
6from gdi import *
7
68bc8549
RD
8from fonts import *
9
9c039d08
RD
10from windows import *
11
b1462dfa
RD
12from clip_dnd import *
13
9c039d08
RD
14from stattool import *
15
16from controls import *
17
18from events import *
b8b8dda7 19import wx
ecc08ead 20class wxTopLevelWindowPtr(wxWindowPtr):
9c039d08
RD
21 def __init__(self,this):
22 self.this = this
23 self.thisown = 0
09f3d4e6 24 def Create(self, *_args, **_kwargs):
ecc08ead 25 val = apply(framesc.wxTopLevelWindow_Create,(self,) + _args, _kwargs)
09f3d4e6 26 return val
ecc08ead
RD
27 def Maximize(self, *_args, **_kwargs):
28 val = apply(framesc.wxTopLevelWindow_Maximize,(self,) + _args, _kwargs)
9c039d08 29 return val
ecc08ead
RD
30 def Restore(self, *_args, **_kwargs):
31 val = apply(framesc.wxTopLevelWindow_Restore,(self,) + _args, _kwargs)
9c039d08 32 return val
ecc08ead
RD
33 def Iconize(self, *_args, **_kwargs):
34 val = apply(framesc.wxTopLevelWindow_Iconize,(self,) + _args, _kwargs)
35 return val
36 def IsMaximized(self, *_args, **_kwargs):
37 val = apply(framesc.wxTopLevelWindow_IsMaximized,(self,) + _args, _kwargs)
38 return val
39 def IsIconized(self, *_args, **_kwargs):
40 val = apply(framesc.wxTopLevelWindow_IsIconized,(self,) + _args, _kwargs)
9c039d08 41 return val
f6bcfd97 42 def GetIcon(self, *_args, **_kwargs):
ecc08ead 43 val = apply(framesc.wxTopLevelWindow_GetIcon,(self,) + _args, _kwargs)
c5943253 44 if val: val = wxIconPtr(val) ; val.thisown = 1
f6bcfd97 45 return val
ecc08ead
RD
46 def SetIcon(self, *_args, **_kwargs):
47 val = apply(framesc.wxTopLevelWindow_SetIcon,(self,) + _args, _kwargs)
9c039d08 48 return val
0e9b78ce
RD
49 def SetIcons(self, *_args, **_kwargs):
50 val = apply(framesc.wxTopLevelWindow_SetIcons,(self,) + _args, _kwargs)
51 return val
900d9886
RD
52 def ShowFullScreen(self, *_args, **_kwargs):
53 val = apply(framesc.wxTopLevelWindow_ShowFullScreen,(self,) + _args, _kwargs)
54 return val
55 def IsFullScreen(self, *_args, **_kwargs):
56 val = apply(framesc.wxTopLevelWindow_IsFullScreen,(self,) + _args, _kwargs)
57 return val
ecc08ead
RD
58 def SetTitle(self, *_args, **_kwargs):
59 val = apply(framesc.wxTopLevelWindow_SetTitle,(self,) + _args, _kwargs)
9c039d08 60 return val
1d99702e 61 def GetTitle(self, *_args, **_kwargs):
ecc08ead 62 val = apply(framesc.wxTopLevelWindow_GetTitle,(self,) + _args, _kwargs)
9c039d08 63 return val
ecc08ead
RD
64 def __repr__(self):
65 return "<C wxTopLevelWindow instance at %s>" % (self.this,)
66class wxTopLevelWindow(wxTopLevelWindowPtr):
67 def __init__(self,*_args,**_kwargs):
68 self.this = apply(framesc.new_wxTopLevelWindow,_args,_kwargs)
69 self.thisown = 1
0122b7e3 70 self._setOORInfo(self)
ecc08ead
RD
71
72
73
74def wxPreTopLevelWindow(*_args,**_kwargs):
75 val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs))
76 val.thisown = 1
17c0e08c 77 val._setOORInfo(val)
ecc08ead
RD
78 return val
79
80
81class wxFramePtr(wxTopLevelWindowPtr):
82 def __init__(self,this):
83 self.this = this
84 self.thisown = 0
85 def Create(self, *_args, **_kwargs):
86 val = apply(framesc.wxFrame_Create,(self,) + _args, _kwargs)
9c039d08 87 return val
ecc08ead
RD
88 def GetClientAreaOrigin(self, *_args, **_kwargs):
89 val = apply(framesc.wxFrame_GetClientAreaOrigin,(self,) + _args, _kwargs)
90 if val: val = wxPointPtr(val) ; val.thisown = 1
9c039d08 91 return val
ecc08ead
RD
92 def SetMenuBar(self, *_args, **_kwargs):
93 val = apply(framesc.wxFrame_SetMenuBar,(self,) + _args, _kwargs)
9c039d08 94 return val
ecc08ead
RD
95 def GetMenuBar(self, *_args, **_kwargs):
96 val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs)
f6bcfd97 97 return val
ecc08ead
RD
98 def ProcessCommand(self, *_args, **_kwargs):
99 val = apply(framesc.wxFrame_ProcessCommand,(self,) + _args, _kwargs)
9c039d08 100 return val
ecc08ead
RD
101 def CreateStatusBar(self, *_args, **_kwargs):
102 val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs)
9c039d08 103 return val
ecc08ead
RD
104 def GetStatusBar(self, *_args, **_kwargs):
105 val = apply(framesc.wxFrame_GetStatusBar,(self,) + _args, _kwargs)
9c039d08 106 return val
1d99702e
RD
107 def SetStatusBar(self, *_args, **_kwargs):
108 val = apply(framesc.wxFrame_SetStatusBar,(self,) + _args, _kwargs)
9c039d08 109 return val
1d99702e
RD
110 def SetStatusText(self, *_args, **_kwargs):
111 val = apply(framesc.wxFrame_SetStatusText,(self,) + _args, _kwargs)
9c039d08 112 return val
1d99702e
RD
113 def SetStatusWidths(self, *_args, **_kwargs):
114 val = apply(framesc.wxFrame_SetStatusWidths,(self,) + _args, _kwargs)
9c039d08 115 return val
94e36a51
RD
116 def PushStatusText(self, *_args, **_kwargs):
117 val = apply(framesc.wxFrame_PushStatusText,(self,) + _args, _kwargs)
118 return val
119 def PopStatusText(self, *_args, **_kwargs):
120 val = apply(framesc.wxFrame_PopStatusText,(self,) + _args, _kwargs)
121 return val
122 def DoGiveHelp(self, *_args, **_kwargs):
123 val = apply(framesc.wxFrame_DoGiveHelp,(self,) + _args, _kwargs)
124 return val
125 def SetStatusBarPane(self, *_args, **_kwargs):
126 val = apply(framesc.wxFrame_SetStatusBarPane,(self,) + _args, _kwargs)
127 return val
128 def GetStatusBarPane(self, *_args, **_kwargs):
129 val = apply(framesc.wxFrame_GetStatusBarPane,(self,) + _args, _kwargs)
130 return val
ecc08ead
RD
131 def CreateToolBar(self, *_args, **_kwargs):
132 val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs)
133 return val
134 def GetToolBar(self, *_args, **_kwargs):
135 val = apply(framesc.wxFrame_GetToolBar,(self,) + _args, _kwargs)
9c039d08 136 return val
1d99702e
RD
137 def SetToolBar(self, *_args, **_kwargs):
138 val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs)
9c039d08 139 return val
f725aedb
RD
140 def SendSizeEvent(self, *_args, **_kwargs):
141 val = apply(framesc.wxFrame_SendSizeEvent,(self,) + _args, _kwargs)
142 return val
9c039d08 143 def __repr__(self):
1d99702e 144 return "<C wxFrame instance at %s>" % (self.this,)
7e50db3f 145 Command = ProcessCommand
9c039d08 146class wxFrame(wxFramePtr):
1d99702e
RD
147 def __init__(self,*_args,**_kwargs):
148 self.this = apply(framesc.new_wxFrame,_args,_kwargs)
9c039d08 149 self.thisown = 1
0122b7e3 150 self._setOORInfo(self)
9c039d08
RD
151
152
153
09f3d4e6
RD
154def wxPreFrame(*_args,**_kwargs):
155 val = wxFramePtr(apply(framesc.new_wxPreFrame,_args,_kwargs))
156 val.thisown = 1
17c0e08c 157 val._setOORInfo(val)
09f3d4e6
RD
158 return val
159
9c039d08 160
ecc08ead
RD
161class wxDialogPtr(wxTopLevelWindowPtr):
162 def __init__(self,this):
163 self.this = this
164 self.thisown = 0
165 def Create(self, *_args, **_kwargs):
166 val = apply(framesc.wxDialog_Create,(self,) + _args, _kwargs)
167 return val
168 def Centre(self, *_args, **_kwargs):
169 val = apply(framesc.wxDialog_Centre,(self,) + _args, _kwargs)
170 return val
171 def EndModal(self, *_args, **_kwargs):
172 val = apply(framesc.wxDialog_EndModal,(self,) + _args, _kwargs)
173 return val
174 def SetModal(self, *_args, **_kwargs):
175 val = apply(framesc.wxDialog_SetModal,(self,) + _args, _kwargs)
176 return val
177 def IsModal(self, *_args, **_kwargs):
178 val = apply(framesc.wxDialog_IsModal,(self,) + _args, _kwargs)
179 return val
180 def ShowModal(self, *_args, **_kwargs):
181 val = apply(framesc.wxDialog_ShowModal,(self,) + _args, _kwargs)
182 return val
183 def GetReturnCode(self, *_args, **_kwargs):
184 val = apply(framesc.wxDialog_GetReturnCode,(self,) + _args, _kwargs)
185 return val
186 def SetReturnCode(self, *_args, **_kwargs):
187 val = apply(framesc.wxDialog_SetReturnCode,(self,) + _args, _kwargs)
188 return val
189 def CreateTextSizer(self, *_args, **_kwargs):
190 val = apply(framesc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
191 return val
192 def CreateButtonSizer(self, *_args, **_kwargs):
193 val = apply(framesc.wxDialog_CreateButtonSizer,(self,) + _args, _kwargs)
194 return val
195 def __repr__(self):
196 return "<C wxDialog instance at %s>" % (self.this,)
197class wxDialog(wxDialogPtr):
198 def __init__(self,*_args,**_kwargs):
199 self.this = apply(framesc.new_wxDialog,_args,_kwargs)
200 self.thisown = 1
0122b7e3 201 self._setOORInfo(self)
ecc08ead
RD
202
203
204
205def wxPreDialog(*_args,**_kwargs):
206 val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs))
207 val.thisown = 1
17c0e08c 208 val._setOORInfo(val)
ecc08ead
RD
209 return val
210
211
9c039d08
RD
212class wxMiniFramePtr(wxFramePtr):
213 def __init__(self,this):
214 self.this = this
215 self.thisown = 0
09f3d4e6
RD
216 def Create(self, *_args, **_kwargs):
217 val = apply(framesc.wxMiniFrame_Create,(self,) + _args, _kwargs)
218 return val
9c039d08 219 def __repr__(self):
1d99702e 220 return "<C wxMiniFrame instance at %s>" % (self.this,)
9c039d08 221class wxMiniFrame(wxMiniFramePtr):
1d99702e
RD
222 def __init__(self,*_args,**_kwargs):
223 self.this = apply(framesc.new_wxMiniFrame,_args,_kwargs)
9c039d08 224 self.thisown = 1
0122b7e3 225 self._setOORInfo(self)
9c039d08
RD
226
227
228
09f3d4e6
RD
229def wxPreMiniFrame(*_args,**_kwargs):
230 val = wxMiniFramePtr(apply(framesc.new_wxPreMiniFrame,_args,_kwargs))
231 val.thisown = 1
17c0e08c 232 val._setOORInfo(val)
09f3d4e6
RD
233 return val
234
9c039d08 235
b5a5d647
RD
236class wxSplashScreenWindowPtr(wxWindowPtr):
237 def __init__(self,this):
238 self.this = this
239 self.thisown = 0
240 def SetBitmap(self, *_args, **_kwargs):
241 val = apply(framesc.wxSplashScreenWindow_SetBitmap,(self,) + _args, _kwargs)
242 return val
243 def GetBitmap(self, *_args, **_kwargs):
244 val = apply(framesc.wxSplashScreenWindow_GetBitmap,(self,) + _args, _kwargs)
245 if val: val = wxBitmapPtr(val)
246 return val
247 def __repr__(self):
248 return "<C wxSplashScreenWindow instance at %s>" % (self.this,)
249class wxSplashScreenWindow(wxSplashScreenWindowPtr):
250 def __init__(self,*_args,**_kwargs):
251 self.this = apply(framesc.new_wxSplashScreenWindow,_args,_kwargs)
252 self.thisown = 1
aacd7bb6 253 self._setOORInfo(self)
b5a5d647
RD
254
255
256
257
258class wxSplashScreenPtr(wxFramePtr):
259 def __init__(self,this):
260 self.this = this
261 self.thisown = 0
262 def GetSplashStyle(self, *_args, **_kwargs):
263 val = apply(framesc.wxSplashScreen_GetSplashStyle,(self,) + _args, _kwargs)
264 return val
265 def GetSplashWindow(self, *_args, **_kwargs):
266 val = apply(framesc.wxSplashScreen_GetSplashWindow,(self,) + _args, _kwargs)
267 if val: val = wxSplashScreenWindowPtr(val)
268 return val
269 def GetTimeout(self, *_args, **_kwargs):
270 val = apply(framesc.wxSplashScreen_GetTimeout,(self,) + _args, _kwargs)
271 return val
272 def __repr__(self):
273 return "<C wxSplashScreen instance at %s>" % (self.this,)
274class wxSplashScreen(wxSplashScreenPtr):
275 def __init__(self,*_args,**_kwargs):
276 self.this = apply(framesc.new_wxSplashScreen,_args,_kwargs)
277 self.thisown = 1
aacd7bb6 278 self._setOORInfo(self)
b5a5d647
RD
279
280
281
282
9c039d08
RD
283
284
285#-------------- FUNCTION WRAPPERS ------------------
286
287
288
289#-------------- VARIABLE WRAPPERS ------------------
290
f6bcfd97
BP
291wxFULLSCREEN_NOMENUBAR = framesc.wxFULLSCREEN_NOMENUBAR
292wxFULLSCREEN_NOTOOLBAR = framesc.wxFULLSCREEN_NOTOOLBAR
293wxFULLSCREEN_NOSTATUSBAR = framesc.wxFULLSCREEN_NOSTATUSBAR
294wxFULLSCREEN_NOBORDER = framesc.wxFULLSCREEN_NOBORDER
295wxFULLSCREEN_NOCAPTION = framesc.wxFULLSCREEN_NOCAPTION
296wxFULLSCREEN_ALL = framesc.wxFULLSCREEN_ALL
ecc08ead 297wxTOPLEVEL_EX_DIALOG = framesc.wxTOPLEVEL_EX_DIALOG
b5a5d647
RD
298wxSPLASH_CENTRE_ON_PARENT = framesc.wxSPLASH_CENTRE_ON_PARENT
299wxSPLASH_CENTRE_ON_SCREEN = framesc.wxSPLASH_CENTRE_ON_SCREEN
300wxSPLASH_NO_CENTRE = framesc.wxSPLASH_NO_CENTRE
301wxSPLASH_TIMEOUT = framesc.wxSPLASH_TIMEOUT
302wxSPLASH_NO_TIMEOUT = framesc.wxSPLASH_NO_TIMEOUT