]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/cmndlgs.py
Version 0.4.1 for wxGTK
[wxWidgets.git] / utils / wxPython / src / gtk / cmndlgs.py
1 # This file was created automatically by SWIG.
2 import cmndlgsc
3
4 from misc import *
5
6 from gdi import *
7
8 from windows import *
9 class wxColourDataPtr :
10 def __init__(self,this):
11 self.this = this
12 self.thisown = 0
13 def __del__(self):
14 if self.thisown == 1 :
15 cmndlgsc.delete_wxColourData(self.this)
16 def GetChooseFull(self):
17 val = cmndlgsc.wxColourData_GetChooseFull(self.this)
18 return val
19 def GetColour(self):
20 val = cmndlgsc.wxColourData_GetColour(self.this)
21 val = wxColourPtr(val)
22 return val
23 def GetCustomColour(self,arg0):
24 val = cmndlgsc.wxColourData_GetCustomColour(self.this,arg0)
25 val = wxColourPtr(val)
26 val.thisown = 1
27 return val
28 def SetChooseFull(self,arg0):
29 val = cmndlgsc.wxColourData_SetChooseFull(self.this,arg0)
30 return val
31 def SetColour(self,arg0):
32 val = cmndlgsc.wxColourData_SetColour(self.this,arg0.this)
33 return val
34 def SetCustomColour(self,arg0,arg1):
35 val = cmndlgsc.wxColourData_SetCustomColour(self.this,arg0,arg1.this)
36 return val
37 def __repr__(self):
38 return "<C wxColourData instance>"
39 class wxColourData(wxColourDataPtr):
40 def __init__(self) :
41 self.this = cmndlgsc.new_wxColourData()
42 self.thisown = 1
43
44
45
46
47 class wxColourDialogPtr(wxDialogPtr):
48 def __init__(self,this):
49 self.this = this
50 self.thisown = 0
51 def GetColourData(self):
52 val = cmndlgsc.wxColourDialog_GetColourData(self.this)
53 val = wxColourDataPtr(val)
54 val.thisown = 1
55 return val
56 def ShowModal(self):
57 val = cmndlgsc.wxColourDialog_ShowModal(self.this)
58 return val
59 def __repr__(self):
60 return "<C wxColourDialog instance>"
61 class wxColourDialog(wxColourDialogPtr):
62 def __init__(self,arg0,*args) :
63 argl = map(None,args)
64 try: argl[0] = argl[0].this
65 except: pass
66 args = tuple(argl)
67 self.this = apply(cmndlgsc.new_wxColourDialog,(arg0.this,)+args)
68 self.thisown = 1
69 wxp._StdDialogCallbacks(self)
70
71
72
73
74 class wxFileDialogPtr(wxDialogPtr):
75 def __init__(self,this):
76 self.this = this
77 self.thisown = 0
78 def GetDirectory(self):
79 val = cmndlgsc.wxFileDialog_GetDirectory(self.this)
80 return val
81 def GetFilename(self):
82 val = cmndlgsc.wxFileDialog_GetFilename(self.this)
83 return val
84 def GetFilterIndex(self):
85 val = cmndlgsc.wxFileDialog_GetFilterIndex(self.this)
86 return val
87 def GetMessage(self):
88 val = cmndlgsc.wxFileDialog_GetMessage(self.this)
89 return val
90 def GetPath(self):
91 val = cmndlgsc.wxFileDialog_GetPath(self.this)
92 return val
93 def GetStyle(self):
94 val = cmndlgsc.wxFileDialog_GetStyle(self.this)
95 return val
96 def GetWildcard(self):
97 val = cmndlgsc.wxFileDialog_GetWildcard(self.this)
98 return val
99 def SetDirectory(self,arg0):
100 val = cmndlgsc.wxFileDialog_SetDirectory(self.this,arg0)
101 return val
102 def SetFilename(self,arg0):
103 val = cmndlgsc.wxFileDialog_SetFilename(self.this,arg0)
104 return val
105 def SetFilterIndex(self,arg0):
106 val = cmndlgsc.wxFileDialog_SetFilterIndex(self.this,arg0)
107 return val
108 def SetMessage(self,arg0):
109 val = cmndlgsc.wxFileDialog_SetMessage(self.this,arg0)
110 return val
111 def SetPath(self,arg0):
112 val = cmndlgsc.wxFileDialog_SetPath(self.this,arg0)
113 return val
114 def SetStyle(self,arg0):
115 val = cmndlgsc.wxFileDialog_SetStyle(self.this,arg0)
116 return val
117 def SetWildcard(self,arg0):
118 val = cmndlgsc.wxFileDialog_SetWildcard(self.this,arg0)
119 return val
120 def ShowModal(self):
121 val = cmndlgsc.wxFileDialog_ShowModal(self.this)
122 return val
123 def __repr__(self):
124 return "<C wxFileDialog instance>"
125 class wxFileDialog(wxFileDialogPtr):
126 def __init__(self,arg0,*args) :
127 argl = map(None,args)
128 try: argl[5] = argl[5].this
129 except: pass
130 args = tuple(argl)
131 self.this = apply(cmndlgsc.new_wxFileDialog,(arg0.this,)+args)
132 self.thisown = 1
133 wxp._StdDialogCallbacks(self)
134
135
136
137
138 class wxSingleChoiceDialogPtr(wxDialogPtr):
139 def __init__(self,this):
140 self.this = this
141 self.thisown = 0
142 def GetSelection(self):
143 val = cmndlgsc.wxSingleChoiceDialog_GetSelection(self.this)
144 return val
145 def GetStringSelection(self):
146 val = cmndlgsc.wxSingleChoiceDialog_GetStringSelection(self.this)
147 return val
148 def SetSelection(self,arg0):
149 val = cmndlgsc.wxSingleChoiceDialog_SetSelection(self.this,arg0)
150 return val
151 def ShowModal(self):
152 val = cmndlgsc.wxSingleChoiceDialog_ShowModal(self.this)
153 return val
154 def __repr__(self):
155 return "<C wxSingleChoiceDialog instance>"
156 class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
157 def __init__(self,arg0,arg1,arg2,arg3,*args) :
158 argl = map(None,args)
159 try: argl[1] = argl[1].this
160 except: pass
161 args = tuple(argl)
162 self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,(arg0.this,arg1,arg2,arg3,)+args)
163 self.thisown = 1
164 wxp._StdDialogCallbacks(self)
165
166
167
168
169 class wxTextEntryDialogPtr(wxDialogPtr):
170 def __init__(self,this):
171 self.this = this
172 self.thisown = 0
173 def GetValue(self):
174 val = cmndlgsc.wxTextEntryDialog_GetValue(self.this)
175 return val
176 def SetValue(self,arg0):
177 val = cmndlgsc.wxTextEntryDialog_SetValue(self.this,arg0)
178 return val
179 def ShowModal(self):
180 val = cmndlgsc.wxTextEntryDialog_ShowModal(self.this)
181 return val
182 def __repr__(self):
183 return "<C wxTextEntryDialog instance>"
184 class wxTextEntryDialog(wxTextEntryDialogPtr):
185 def __init__(self,arg0,arg1,*args) :
186 argl = map(None,args)
187 try: argl[3] = argl[3].this
188 except: pass
189 args = tuple(argl)
190 self.this = apply(cmndlgsc.new_wxTextEntryDialog,(arg0.this,arg1,)+args)
191 self.thisown = 1
192 wxp._StdDialogCallbacks(self)
193
194
195
196
197 class wxFontDataPtr :
198 def __init__(self,this):
199 self.this = this
200 self.thisown = 0
201 def __del__(self):
202 if self.thisown == 1 :
203 cmndlgsc.delete_wxFontData(self.this)
204 def EnableEffects(self,arg0):
205 val = cmndlgsc.wxFontData_EnableEffects(self.this,arg0)
206 return val
207 def GetAllowSymbols(self):
208 val = cmndlgsc.wxFontData_GetAllowSymbols(self.this)
209 return val
210 def GetColour(self):
211 val = cmndlgsc.wxFontData_GetColour(self.this)
212 val = wxColourPtr(val)
213 return val
214 def GetChosenFont(self):
215 val = cmndlgsc.wxFontData_GetChosenFont(self.this)
216 val = wxFontPtr(val)
217 val.thisown = 1
218 return val
219 def GetEnableEffects(self):
220 val = cmndlgsc.wxFontData_GetEnableEffects(self.this)
221 return val
222 def GetInitialFont(self):
223 val = cmndlgsc.wxFontData_GetInitialFont(self.this)
224 val = wxFontPtr(val)
225 val.thisown = 1
226 return val
227 def GetShowHelp(self):
228 val = cmndlgsc.wxFontData_GetShowHelp(self.this)
229 return val
230 def SetAllowSymbols(self,arg0):
231 val = cmndlgsc.wxFontData_SetAllowSymbols(self.this,arg0)
232 return val
233 def SetChosenFont(self,arg0):
234 val = cmndlgsc.wxFontData_SetChosenFont(self.this,arg0.this)
235 return val
236 def SetColour(self,arg0):
237 val = cmndlgsc.wxFontData_SetColour(self.this,arg0.this)
238 return val
239 def SetInitialFont(self,arg0):
240 val = cmndlgsc.wxFontData_SetInitialFont(self.this,arg0.this)
241 return val
242 def SetRange(self,arg0,arg1):
243 val = cmndlgsc.wxFontData_SetRange(self.this,arg0,arg1)
244 return val
245 def SetShowHelp(self,arg0):
246 val = cmndlgsc.wxFontData_SetShowHelp(self.this,arg0)
247 return val
248 def __repr__(self):
249 return "<C wxFontData instance>"
250 class wxFontData(wxFontDataPtr):
251 def __init__(self) :
252 self.this = cmndlgsc.new_wxFontData()
253 self.thisown = 1
254
255
256
257
258 class wxFontDialogPtr(wxDialogPtr):
259 def __init__(self,this):
260 self.this = this
261 self.thisown = 0
262 def GetFontData(self):
263 val = cmndlgsc.wxFontDialog_GetFontData(self.this)
264 val = wxFontDataPtr(val)
265 return val
266 def ShowModal(self):
267 val = cmndlgsc.wxFontDialog_ShowModal(self.this)
268 return val
269 def __repr__(self):
270 return "<C wxFontDialog instance>"
271 class wxFontDialog(wxFontDialogPtr):
272 def __init__(self,arg0,*args) :
273 argl = map(None,args)
274 try: argl[0] = argl[0].this
275 except: pass
276 args = tuple(argl)
277 self.this = apply(cmndlgsc.new_wxFontDialog,(arg0.this,)+args)
278 self.thisown = 1
279 wxp._StdDialogCallbacks(self)
280
281
282
283
284 class wxMessageDialogPtr(wxDialogPtr):
285 def __init__(self,this):
286 self.this = this
287 self.thisown = 0
288 def ShowModal(self):
289 val = cmndlgsc.wxMessageDialog_ShowModal(self.this)
290 return val
291 def __repr__(self):
292 return "<C wxMessageDialog instance>"
293 class wxMessageDialog(wxMessageDialogPtr):
294 def __init__(self,arg0,arg1,*args) :
295 argl = map(None,args)
296 try: argl[2] = argl[2].this
297 except: pass
298 args = tuple(argl)
299 self.this = apply(cmndlgsc.new_wxMessageDialog,(arg0.this,arg1,)+args)
300 self.thisown = 1
301 wxp._StdDialogCallbacks(self)
302
303
304
305
306
307
308 #-------------- FUNCTION WRAPPERS ------------------
309
310
311
312 #-------------- VARIABLE WRAPPERS ------------------
313