]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/cmndlgs.py
some tweaks 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
70
71
72
73 class wxFileDialogPtr(wxDialogPtr):
74 def __init__(self,this):
75 self.this = this
76 self.thisown = 0
77 def GetDirectory(self):
78 val = cmndlgsc.wxFileDialog_GetDirectory(self.this)
79 return val
80 def GetFilename(self):
81 val = cmndlgsc.wxFileDialog_GetFilename(self.this)
82 return val
83 def GetFilterIndex(self):
84 val = cmndlgsc.wxFileDialog_GetFilterIndex(self.this)
85 return val
86 def GetMessage(self):
87 val = cmndlgsc.wxFileDialog_GetMessage(self.this)
88 return val
89 def GetPath(self):
90 val = cmndlgsc.wxFileDialog_GetPath(self.this)
91 return val
92 def GetStyle(self):
93 val = cmndlgsc.wxFileDialog_GetStyle(self.this)
94 return val
95 def GetWildcard(self):
96 val = cmndlgsc.wxFileDialog_GetWildcard(self.this)
97 return val
98 def SetDirectory(self,arg0):
99 val = cmndlgsc.wxFileDialog_SetDirectory(self.this,arg0)
100 return val
101 def SetFilename(self,arg0):
102 val = cmndlgsc.wxFileDialog_SetFilename(self.this,arg0)
103 return val
104 def SetFilterIndex(self,arg0):
105 val = cmndlgsc.wxFileDialog_SetFilterIndex(self.this,arg0)
106 return val
107 def SetMessage(self,arg0):
108 val = cmndlgsc.wxFileDialog_SetMessage(self.this,arg0)
109 return val
110 def SetPath(self,arg0):
111 val = cmndlgsc.wxFileDialog_SetPath(self.this,arg0)
112 return val
113 def SetStyle(self,arg0):
114 val = cmndlgsc.wxFileDialog_SetStyle(self.this,arg0)
115 return val
116 def SetWildcard(self,arg0):
117 val = cmndlgsc.wxFileDialog_SetWildcard(self.this,arg0)
118 return val
119 def ShowModal(self):
120 val = cmndlgsc.wxFileDialog_ShowModal(self.this)
121 return val
122 def __repr__(self):
123 return "<C wxFileDialog instance>"
124 class wxFileDialog(wxFileDialogPtr):
125 def __init__(self,arg0,*args) :
126 argl = map(None,args)
127 try: argl[5] = argl[5].this
128 except: pass
129 args = tuple(argl)
130 self.this = apply(cmndlgsc.new_wxFileDialog,(arg0.this,)+args)
131 self.thisown = 1
132
133
134
135
136 class wxSingleChoiceDialogPtr(wxDialogPtr):
137 def __init__(self,this):
138 self.this = this
139 self.thisown = 0
140 def GetSelection(self):
141 val = cmndlgsc.wxSingleChoiceDialog_GetSelection(self.this)
142 return val
143 def GetStringSelection(self):
144 val = cmndlgsc.wxSingleChoiceDialog_GetStringSelection(self.this)
145 return val
146 def SetSelection(self,arg0):
147 val = cmndlgsc.wxSingleChoiceDialog_SetSelection(self.this,arg0)
148 return val
149 def ShowModal(self):
150 val = cmndlgsc.wxSingleChoiceDialog_ShowModal(self.this)
151 return val
152 def __repr__(self):
153 return "<C wxSingleChoiceDialog instance>"
154 class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
155 def __init__(self,arg0,arg1,arg2,arg3,*args) :
156 argl = map(None,args)
157 try: argl[1] = argl[1].this
158 except: pass
159 args = tuple(argl)
160 self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,(arg0.this,arg1,arg2,arg3,)+args)
161 self.thisown = 1
162
163
164
165
166 class wxTextEntryDialogPtr(wxDialogPtr):
167 def __init__(self,this):
168 self.this = this
169 self.thisown = 0
170 def GetValue(self):
171 val = cmndlgsc.wxTextEntryDialog_GetValue(self.this)
172 return val
173 def SetValue(self,arg0):
174 val = cmndlgsc.wxTextEntryDialog_SetValue(self.this,arg0)
175 return val
176 def ShowModal(self):
177 val = cmndlgsc.wxTextEntryDialog_ShowModal(self.this)
178 return val
179 def __repr__(self):
180 return "<C wxTextEntryDialog instance>"
181 class wxTextEntryDialog(wxTextEntryDialogPtr):
182 def __init__(self,arg0,arg1,*args) :
183 argl = map(None,args)
184 try: argl[3] = argl[3].this
185 except: pass
186 args = tuple(argl)
187 self.this = apply(cmndlgsc.new_wxTextEntryDialog,(arg0.this,arg1,)+args)
188 self.thisown = 1
189
190
191
192
193 class wxFontDataPtr :
194 def __init__(self,this):
195 self.this = this
196 self.thisown = 0
197 def __del__(self):
198 if self.thisown == 1 :
199 cmndlgsc.delete_wxFontData(self.this)
200 def EnableEffects(self,arg0):
201 val = cmndlgsc.wxFontData_EnableEffects(self.this,arg0)
202 return val
203 def GetAllowSymbols(self):
204 val = cmndlgsc.wxFontData_GetAllowSymbols(self.this)
205 return val
206 def GetColour(self):
207 val = cmndlgsc.wxFontData_GetColour(self.this)
208 val = wxColourPtr(val)
209 return val
210 def GetChosenFont(self):
211 val = cmndlgsc.wxFontData_GetChosenFont(self.this)
212 val = wxFontPtr(val)
213 val.thisown = 1
214 return val
215 def GetEnableEffects(self):
216 val = cmndlgsc.wxFontData_GetEnableEffects(self.this)
217 return val
218 def GetInitialFont(self):
219 val = cmndlgsc.wxFontData_GetInitialFont(self.this)
220 val = wxFontPtr(val)
221 val.thisown = 1
222 return val
223 def GetShowHelp(self):
224 val = cmndlgsc.wxFontData_GetShowHelp(self.this)
225 return val
226 def SetAllowSymbols(self,arg0):
227 val = cmndlgsc.wxFontData_SetAllowSymbols(self.this,arg0)
228 return val
229 def SetChosenFont(self,arg0):
230 val = cmndlgsc.wxFontData_SetChosenFont(self.this,arg0.this)
231 return val
232 def SetColour(self,arg0):
233 val = cmndlgsc.wxFontData_SetColour(self.this,arg0.this)
234 return val
235 def SetInitialFont(self,arg0):
236 val = cmndlgsc.wxFontData_SetInitialFont(self.this,arg0.this)
237 return val
238 def SetRange(self,arg0,arg1):
239 val = cmndlgsc.wxFontData_SetRange(self.this,arg0,arg1)
240 return val
241 def SetShowHelp(self,arg0):
242 val = cmndlgsc.wxFontData_SetShowHelp(self.this,arg0)
243 return val
244 def __repr__(self):
245 return "<C wxFontData instance>"
246 class wxFontData(wxFontDataPtr):
247 def __init__(self) :
248 self.this = cmndlgsc.new_wxFontData()
249 self.thisown = 1
250
251
252
253
254 class wxFontDialogPtr(wxDialogPtr):
255 def __init__(self,this):
256 self.this = this
257 self.thisown = 0
258 def GetFontData(self):
259 val = cmndlgsc.wxFontDialog_GetFontData(self.this)
260 val = wxFontDataPtr(val)
261 return val
262 def ShowModal(self):
263 val = cmndlgsc.wxFontDialog_ShowModal(self.this)
264 return val
265 def __repr__(self):
266 return "<C wxFontDialog instance>"
267 class wxFontDialog(wxFontDialogPtr):
268 def __init__(self,arg0,*args) :
269 argl = map(None,args)
270 try: argl[0] = argl[0].this
271 except: pass
272 args = tuple(argl)
273 self.this = apply(cmndlgsc.new_wxFontDialog,(arg0.this,)+args)
274 self.thisown = 1
275
276
277
278
279 class wxMessageDialogPtr(wxDialogPtr):
280 def __init__(self,this):
281 self.this = this
282 self.thisown = 0
283 def ShowModal(self):
284 val = cmndlgsc.wxMessageDialog_ShowModal(self.this)
285 return val
286 def __repr__(self):
287 return "<C wxMessageDialog instance>"
288 class wxMessageDialog(wxMessageDialogPtr):
289 def __init__(self,arg0,arg1,*args) :
290 argl = map(None,args)
291 try: argl[2] = argl[2].this
292 except: pass
293 args = tuple(argl)
294 self.this = apply(cmndlgsc.new_wxMessageDialog,(arg0.this,arg1,)+args)
295 self.thisown = 1
296
297
298
299
300
301
302 #-------------- FUNCTION WRAPPERS ------------------
303
304
305
306 #-------------- VARIABLE WRAPPERS ------------------
307