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