]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | # This file was created automatically by SWIG. |
2 | import utilsc | |
3 | import string | |
4 | class wxConfigBasePtr : | |
5 | Type_Unknown = utilsc.wxConfigBase_Type_Unknown | |
6 | Type_String = utilsc.wxConfigBase_Type_String | |
7 | Type_Boolean = utilsc.wxConfigBase_Type_Boolean | |
8 | Type_Integer = utilsc.wxConfigBase_Type_Integer | |
9 | Type_Float = utilsc.wxConfigBase_Type_Float | |
10 | def __init__(self,this): | |
11 | self.this = this | |
12 | self.thisown = 0 | |
13 | def __del__(self,utilsc=utilsc): | |
14 | if self.thisown == 1 : | |
15 | utilsc.delete_wxConfigBase(self) | |
16 | def DeleteAll(self, *_args, **_kwargs): | |
17 | val = apply(utilsc.wxConfigBase_DeleteAll,(self,) + _args, _kwargs) | |
18 | return val | |
19 | def DeleteEntry(self, *_args, **_kwargs): | |
20 | val = apply(utilsc.wxConfigBase_DeleteEntry,(self,) + _args, _kwargs) | |
21 | return val | |
22 | def DeleteGroup(self, *_args, **_kwargs): | |
23 | val = apply(utilsc.wxConfigBase_DeleteGroup,(self,) + _args, _kwargs) | |
24 | return val | |
25 | def Exists(self, *_args, **_kwargs): | |
26 | val = apply(utilsc.wxConfigBase_Exists,(self,) + _args, _kwargs) | |
27 | return val | |
28 | def Flush(self, *_args, **_kwargs): | |
29 | val = apply(utilsc.wxConfigBase_Flush,(self,) + _args, _kwargs) | |
30 | return val | |
31 | def GetAppName(self, *_args, **_kwargs): | |
32 | val = apply(utilsc.wxConfigBase_GetAppName,(self,) + _args, _kwargs) | |
33 | return val | |
34 | def GetFirstGroup(self, *_args, **_kwargs): | |
35 | val = apply(utilsc.wxConfigBase_GetFirstGroup,(self,) + _args, _kwargs) | |
36 | return val | |
37 | def GetFirstEntry(self, *_args, **_kwargs): | |
38 | val = apply(utilsc.wxConfigBase_GetFirstEntry,(self,) + _args, _kwargs) | |
39 | return val | |
40 | def GetNextGroup(self, *_args, **_kwargs): | |
41 | val = apply(utilsc.wxConfigBase_GetNextGroup,(self,) + _args, _kwargs) | |
42 | return val | |
43 | def GetNextEntry(self, *_args, **_kwargs): | |
44 | val = apply(utilsc.wxConfigBase_GetNextEntry,(self,) + _args, _kwargs) | |
45 | return val | |
46 | def GetNumberOfEntries(self, *_args, **_kwargs): | |
47 | val = apply(utilsc.wxConfigBase_GetNumberOfEntries,(self,) + _args, _kwargs) | |
48 | return val | |
49 | def GetNumberOfGroups(self, *_args, **_kwargs): | |
50 | val = apply(utilsc.wxConfigBase_GetNumberOfGroups,(self,) + _args, _kwargs) | |
51 | return val | |
52 | def GetPath(self, *_args, **_kwargs): | |
53 | val = apply(utilsc.wxConfigBase_GetPath,(self,) + _args, _kwargs) | |
54 | return val | |
55 | def GetVendorName(self, *_args, **_kwargs): | |
56 | val = apply(utilsc.wxConfigBase_GetVendorName,(self,) + _args, _kwargs) | |
57 | return val | |
58 | def HasEntry(self, *_args, **_kwargs): | |
59 | val = apply(utilsc.wxConfigBase_HasEntry,(self,) + _args, _kwargs) | |
60 | return val | |
61 | def HasGroup(self, *_args, **_kwargs): | |
62 | val = apply(utilsc.wxConfigBase_HasGroup,(self,) + _args, _kwargs) | |
63 | return val | |
64 | def IsExpandingEnvVars(self, *_args, **_kwargs): | |
65 | val = apply(utilsc.wxConfigBase_IsExpandingEnvVars,(self,) + _args, _kwargs) | |
66 | return val | |
67 | def IsRecordingDefaults(self, *_args, **_kwargs): | |
68 | val = apply(utilsc.wxConfigBase_IsRecordingDefaults,(self,) + _args, _kwargs) | |
69 | return val | |
70 | def Read(self, *_args, **_kwargs): | |
71 | val = apply(utilsc.wxConfigBase_Read,(self,) + _args, _kwargs) | |
72 | return val | |
73 | def ReadInt(self, *_args, **_kwargs): | |
74 | val = apply(utilsc.wxConfigBase_ReadInt,(self,) + _args, _kwargs) | |
75 | return val | |
76 | def ReadFloat(self, *_args, **_kwargs): | |
77 | val = apply(utilsc.wxConfigBase_ReadFloat,(self,) + _args, _kwargs) | |
78 | return val | |
6abe8375 RD |
79 | def ReadBool(self, *_args, **_kwargs): |
80 | val = apply(utilsc.wxConfigBase_ReadBool,(self,) + _args, _kwargs) | |
81 | return val | |
e6056257 RD |
82 | def SetExpandEnvVars(self, *_args, **_kwargs): |
83 | val = apply(utilsc.wxConfigBase_SetExpandEnvVars,(self,) + _args, _kwargs) | |
84 | return val | |
85 | def SetPath(self, *_args, **_kwargs): | |
86 | val = apply(utilsc.wxConfigBase_SetPath,(self,) + _args, _kwargs) | |
87 | return val | |
88 | def SetRecordDefaults(self, *_args, **_kwargs): | |
89 | val = apply(utilsc.wxConfigBase_SetRecordDefaults,(self,) + _args, _kwargs) | |
90 | return val | |
91 | def SetAppName(self, *_args, **_kwargs): | |
92 | val = apply(utilsc.wxConfigBase_SetAppName,(self,) + _args, _kwargs) | |
93 | return val | |
94 | def SetVendorName(self, *_args, **_kwargs): | |
95 | val = apply(utilsc.wxConfigBase_SetVendorName,(self,) + _args, _kwargs) | |
96 | return val | |
97 | def SetStyle(self, *_args, **_kwargs): | |
98 | val = apply(utilsc.wxConfigBase_SetStyle,(self,) + _args, _kwargs) | |
99 | return val | |
100 | def GetStyle(self, *_args, **_kwargs): | |
101 | val = apply(utilsc.wxConfigBase_GetStyle,(self,) + _args, _kwargs) | |
102 | return val | |
103 | def Write(self, *_args, **_kwargs): | |
104 | val = apply(utilsc.wxConfigBase_Write,(self,) + _args, _kwargs) | |
105 | return val | |
106 | def WriteInt(self, *_args, **_kwargs): | |
107 | val = apply(utilsc.wxConfigBase_WriteInt,(self,) + _args, _kwargs) | |
108 | return val | |
109 | def WriteFloat(self, *_args, **_kwargs): | |
110 | val = apply(utilsc.wxConfigBase_WriteFloat,(self,) + _args, _kwargs) | |
111 | return val | |
6abe8375 RD |
112 | def WriteBool(self, *_args, **_kwargs): |
113 | val = apply(utilsc.wxConfigBase_WriteBool,(self,) + _args, _kwargs) | |
114 | return val | |
e6056257 RD |
115 | def GetEntryType(self, *_args, **_kwargs): |
116 | val = apply(utilsc.wxConfigBase_GetEntryType,(self,) + _args, _kwargs) | |
117 | return val | |
118 | def RenameEntry(self, *_args, **_kwargs): | |
119 | val = apply(utilsc.wxConfigBase_RenameEntry,(self,) + _args, _kwargs) | |
120 | return val | |
121 | def RenameGroup(self, *_args, **_kwargs): | |
122 | val = apply(utilsc.wxConfigBase_RenameGroup,(self,) + _args, _kwargs) | |
123 | return val | |
124 | def ExpandEnvVars(self, *_args, **_kwargs): | |
125 | val = apply(utilsc.wxConfigBase_ExpandEnvVars,(self,) + _args, _kwargs) | |
126 | return val | |
127 | def __repr__(self): | |
128 | return "<C wxConfigBase instance at %s>" % (self.this,) | |
129 | class wxConfigBase(wxConfigBasePtr): | |
130 | def __init__(self,this): | |
131 | self.this = this | |
132 | ||
133 | ||
134 | ||
135 | ||
136 | class wxConfigPtr(wxConfigBasePtr): | |
137 | def __init__(self,this): | |
138 | self.this = this | |
139 | self.thisown = 0 | |
140 | def __del__(self,utilsc=utilsc): | |
141 | if self.thisown == 1 : | |
142 | utilsc.delete_wxConfig(self) | |
143 | def __repr__(self): | |
144 | return "<C wxConfig instance at %s>" % (self.this,) | |
145 | class wxConfig(wxConfigPtr): | |
146 | def __init__(self,*_args,**_kwargs): | |
147 | self.this = apply(utilsc.new_wxConfig,_args,_kwargs) | |
148 | self.thisown = 1 | |
149 | ||
150 | ||
151 | ||
152 | ||
153 | class wxFileConfigPtr(wxConfigBasePtr): | |
154 | def __init__(self,this): | |
155 | self.this = this | |
156 | self.thisown = 0 | |
157 | def __del__(self,utilsc=utilsc): | |
158 | if self.thisown == 1 : | |
159 | utilsc.delete_wxFileConfig(self) | |
160 | def __repr__(self): | |
161 | return "<C wxFileConfig instance at %s>" % (self.this,) | |
162 | class wxFileConfig(wxFileConfigPtr): | |
163 | def __init__(self,*_args,**_kwargs): | |
164 | self.this = apply(utilsc.new_wxFileConfig,_args,_kwargs) | |
165 | self.thisown = 1 | |
166 | ||
167 | ||
168 | ||
169 | ||
170 | class wxDateTimePtr : | |
171 | Local = utilsc.wxDateTime_Local | |
172 | GMT_12 = utilsc.wxDateTime_GMT_12 | |
173 | GMT_11 = utilsc.wxDateTime_GMT_11 | |
174 | GMT_10 = utilsc.wxDateTime_GMT_10 | |
175 | GMT_9 = utilsc.wxDateTime_GMT_9 | |
176 | GMT_8 = utilsc.wxDateTime_GMT_8 | |
177 | GMT_7 = utilsc.wxDateTime_GMT_7 | |
178 | GMT_6 = utilsc.wxDateTime_GMT_6 | |
179 | GMT_5 = utilsc.wxDateTime_GMT_5 | |
180 | GMT_4 = utilsc.wxDateTime_GMT_4 | |
181 | GMT_3 = utilsc.wxDateTime_GMT_3 | |
182 | GMT_2 = utilsc.wxDateTime_GMT_2 | |
183 | GMT_1 = utilsc.wxDateTime_GMT_1 | |
184 | GMT0 = utilsc.wxDateTime_GMT0 | |
185 | GMT1 = utilsc.wxDateTime_GMT1 | |
186 | GMT2 = utilsc.wxDateTime_GMT2 | |
187 | GMT3 = utilsc.wxDateTime_GMT3 | |
188 | GMT4 = utilsc.wxDateTime_GMT4 | |
189 | GMT5 = utilsc.wxDateTime_GMT5 | |
190 | GMT6 = utilsc.wxDateTime_GMT6 | |
191 | GMT7 = utilsc.wxDateTime_GMT7 | |
192 | GMT8 = utilsc.wxDateTime_GMT8 | |
193 | GMT9 = utilsc.wxDateTime_GMT9 | |
194 | GMT10 = utilsc.wxDateTime_GMT10 | |
195 | GMT11 = utilsc.wxDateTime_GMT11 | |
196 | GMT12 = utilsc.wxDateTime_GMT12 | |
197 | WET = utilsc.wxDateTime_WET | |
198 | WEST = utilsc.wxDateTime_WEST | |
199 | CET = utilsc.wxDateTime_CET | |
200 | CEST = utilsc.wxDateTime_CEST | |
201 | EET = utilsc.wxDateTime_EET | |
202 | EEST = utilsc.wxDateTime_EEST | |
203 | MSK = utilsc.wxDateTime_MSK | |
204 | MSD = utilsc.wxDateTime_MSD | |
205 | AST = utilsc.wxDateTime_AST | |
206 | ADT = utilsc.wxDateTime_ADT | |
207 | EST = utilsc.wxDateTime_EST | |
208 | EDT = utilsc.wxDateTime_EDT | |
209 | CST = utilsc.wxDateTime_CST | |
210 | CDT = utilsc.wxDateTime_CDT | |
211 | MST = utilsc.wxDateTime_MST | |
212 | MDT = utilsc.wxDateTime_MDT | |
213 | PST = utilsc.wxDateTime_PST | |
214 | PDT = utilsc.wxDateTime_PDT | |
215 | HST = utilsc.wxDateTime_HST | |
216 | AKST = utilsc.wxDateTime_AKST | |
217 | AKDT = utilsc.wxDateTime_AKDT | |
218 | A_WST = utilsc.wxDateTime_A_WST | |
219 | A_CST = utilsc.wxDateTime_A_CST | |
220 | A_EST = utilsc.wxDateTime_A_EST | |
221 | A_ESST = utilsc.wxDateTime_A_ESST | |
222 | UTC = utilsc.wxDateTime_UTC | |
223 | Gregorian = utilsc.wxDateTime_Gregorian | |
224 | Julian = utilsc.wxDateTime_Julian | |
225 | Country_Unknown = utilsc.wxDateTime_Country_Unknown | |
226 | Country_Default = utilsc.wxDateTime_Country_Default | |
227 | Country_WesternEurope_Start = utilsc.wxDateTime_Country_WesternEurope_Start | |
228 | Country_EEC = utilsc.wxDateTime_Country_EEC | |
229 | France = utilsc.wxDateTime_France | |
230 | Germany = utilsc.wxDateTime_Germany | |
231 | UK = utilsc.wxDateTime_UK | |
232 | Country_WesternEurope_End = utilsc.wxDateTime_Country_WesternEurope_End | |
233 | Russia = utilsc.wxDateTime_Russia | |
234 | USA = utilsc.wxDateTime_USA | |
235 | Jan = utilsc.wxDateTime_Jan | |
236 | Feb = utilsc.wxDateTime_Feb | |
237 | Mar = utilsc.wxDateTime_Mar | |
238 | Apr = utilsc.wxDateTime_Apr | |
239 | May = utilsc.wxDateTime_May | |
240 | Jun = utilsc.wxDateTime_Jun | |
241 | Jul = utilsc.wxDateTime_Jul | |
242 | Aug = utilsc.wxDateTime_Aug | |
243 | Sep = utilsc.wxDateTime_Sep | |
244 | Oct = utilsc.wxDateTime_Oct | |
245 | Nov = utilsc.wxDateTime_Nov | |
246 | Dec = utilsc.wxDateTime_Dec | |
247 | Inv_Month = utilsc.wxDateTime_Inv_Month | |
248 | Sun = utilsc.wxDateTime_Sun | |
249 | Mon = utilsc.wxDateTime_Mon | |
250 | Tue = utilsc.wxDateTime_Tue | |
251 | Wed = utilsc.wxDateTime_Wed | |
252 | Thu = utilsc.wxDateTime_Thu | |
253 | Fri = utilsc.wxDateTime_Fri | |
254 | Sat = utilsc.wxDateTime_Sat | |
255 | Inv_WeekDay = utilsc.wxDateTime_Inv_WeekDay | |
256 | Inv_Year = utilsc.wxDateTime_Inv_Year | |
257 | Name_Full = utilsc.wxDateTime_Name_Full | |
258 | Name_Abbr = utilsc.wxDateTime_Name_Abbr | |
259 | Default_First = utilsc.wxDateTime_Default_First | |
260 | Monday_First = utilsc.wxDateTime_Monday_First | |
261 | Sunday_First = utilsc.wxDateTime_Sunday_First | |
262 | def __init__(self,this): | |
263 | self.this = this | |
264 | self.thisown = 0 | |
265 | def __del__(self,utilsc=utilsc): | |
266 | if self.thisown == 1 : | |
267 | utilsc.delete_wxDateTime(self) | |
268 | def SetToCurrent(self, *_args, **_kwargs): | |
269 | val = apply(utilsc.wxDateTime_SetToCurrent,(self,) + _args, _kwargs) | |
270 | if val: val = wxDateTimePtr(val) | |
271 | return val | |
272 | def SetTimeT(self, *_args, **_kwargs): | |
273 | val = apply(utilsc.wxDateTime_SetTimeT,(self,) + _args, _kwargs) | |
274 | if val: val = wxDateTimePtr(val) | |
275 | return val | |
276 | def SetJDN(self, *_args, **_kwargs): | |
277 | val = apply(utilsc.wxDateTime_SetJDN,(self,) + _args, _kwargs) | |
278 | if val: val = wxDateTimePtr(val) | |
279 | return val | |
280 | def SetHMS(self, *_args, **_kwargs): | |
281 | val = apply(utilsc.wxDateTime_SetHMS,(self,) + _args, _kwargs) | |
282 | if val: val = wxDateTimePtr(val) | |
283 | return val | |
284 | def Set(self, *_args, **_kwargs): | |
285 | val = apply(utilsc.wxDateTime_Set,(self,) + _args, _kwargs) | |
286 | if val: val = wxDateTimePtr(val) | |
287 | return val | |
288 | def ResetTime(self, *_args, **_kwargs): | |
289 | val = apply(utilsc.wxDateTime_ResetTime,(self,) + _args, _kwargs) | |
290 | if val: val = wxDateTimePtr(val) | |
291 | return val | |
292 | def SetYear(self, *_args, **_kwargs): | |
293 | val = apply(utilsc.wxDateTime_SetYear,(self,) + _args, _kwargs) | |
294 | if val: val = wxDateTimePtr(val) | |
295 | return val | |
296 | def SetMonth(self, *_args, **_kwargs): | |
297 | val = apply(utilsc.wxDateTime_SetMonth,(self,) + _args, _kwargs) | |
298 | if val: val = wxDateTimePtr(val) | |
299 | return val | |
300 | def SetDay(self, *_args, **_kwargs): | |
301 | val = apply(utilsc.wxDateTime_SetDay,(self,) + _args, _kwargs) | |
302 | if val: val = wxDateTimePtr(val) | |
303 | return val | |
304 | def SetHour(self, *_args, **_kwargs): | |
305 | val = apply(utilsc.wxDateTime_SetHour,(self,) + _args, _kwargs) | |
306 | if val: val = wxDateTimePtr(val) | |
307 | return val | |
308 | def SetMinute(self, *_args, **_kwargs): | |
309 | val = apply(utilsc.wxDateTime_SetMinute,(self,) + _args, _kwargs) | |
310 | if val: val = wxDateTimePtr(val) | |
311 | return val | |
312 | def SetSecond(self, *_args, **_kwargs): | |
313 | val = apply(utilsc.wxDateTime_SetSecond,(self,) + _args, _kwargs) | |
314 | if val: val = wxDateTimePtr(val) | |
315 | return val | |
316 | def SetMillisecond(self, *_args, **_kwargs): | |
317 | val = apply(utilsc.wxDateTime_SetMillisecond,(self,) + _args, _kwargs) | |
318 | if val: val = wxDateTimePtr(val) | |
319 | return val | |
320 | def SetToWeekDayInSameWeek(self, *_args, **_kwargs): | |
321 | val = apply(utilsc.wxDateTime_SetToWeekDayInSameWeek,(self,) + _args, _kwargs) | |
322 | if val: val = wxDateTimePtr(val) | |
323 | return val | |
324 | def GetWeekDayInSameWeek(self, *_args, **_kwargs): | |
325 | val = apply(utilsc.wxDateTime_GetWeekDayInSameWeek,(self,) + _args, _kwargs) | |
326 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
327 | return val | |
328 | def SetToNextWeekDay(self, *_args, **_kwargs): | |
329 | val = apply(utilsc.wxDateTime_SetToNextWeekDay,(self,) + _args, _kwargs) | |
330 | if val: val = wxDateTimePtr(val) | |
331 | return val | |
332 | def GetNextWeekDay(self, *_args, **_kwargs): | |
333 | val = apply(utilsc.wxDateTime_GetNextWeekDay,(self,) + _args, _kwargs) | |
334 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
335 | return val | |
336 | def SetToPrevWeekDay(self, *_args, **_kwargs): | |
337 | val = apply(utilsc.wxDateTime_SetToPrevWeekDay,(self,) + _args, _kwargs) | |
338 | if val: val = wxDateTimePtr(val) | |
339 | return val | |
340 | def GetPrevWeekDay(self, *_args, **_kwargs): | |
341 | val = apply(utilsc.wxDateTime_GetPrevWeekDay,(self,) + _args, _kwargs) | |
342 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
343 | return val | |
344 | def SetToWeekDay(self, *_args, **_kwargs): | |
345 | val = apply(utilsc.wxDateTime_SetToWeekDay,(self,) + _args, _kwargs) | |
346 | return val | |
347 | def SetToLastWeekDay(self, *_args, **_kwargs): | |
348 | val = apply(utilsc.wxDateTime_SetToLastWeekDay,(self,) + _args, _kwargs) | |
349 | return val | |
350 | def GetLastWeekDay(self, *_args, **_kwargs): | |
351 | val = apply(utilsc.wxDateTime_GetLastWeekDay,(self,) + _args, _kwargs) | |
352 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
353 | return val | |
354 | def SetToTheWeek(self, *_args, **_kwargs): | |
355 | val = apply(utilsc.wxDateTime_SetToTheWeek,(self,) + _args, _kwargs) | |
356 | return val | |
357 | def GetWeek(self, *_args, **_kwargs): | |
358 | val = apply(utilsc.wxDateTime_GetWeek,(self,) + _args, _kwargs) | |
359 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
360 | return val | |
361 | def SetToLastMonthDay(self, *_args, **_kwargs): | |
362 | val = apply(utilsc.wxDateTime_SetToLastMonthDay,(self,) + _args, _kwargs) | |
363 | if val: val = wxDateTimePtr(val) | |
364 | return val | |
365 | def GetLastMonthDay(self, *_args, **_kwargs): | |
366 | val = apply(utilsc.wxDateTime_GetLastMonthDay,(self,) + _args, _kwargs) | |
367 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
368 | return val | |
369 | def SetToYearDay(self, *_args, **_kwargs): | |
370 | val = apply(utilsc.wxDateTime_SetToYearDay,(self,) + _args, _kwargs) | |
371 | if val: val = wxDateTimePtr(val) | |
372 | return val | |
373 | def GetYearDay(self, *_args, **_kwargs): | |
374 | val = apply(utilsc.wxDateTime_GetYearDay,(self,) + _args, _kwargs) | |
375 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
376 | return val | |
377 | def GetJulianDayNumber(self, *_args, **_kwargs): | |
378 | val = apply(utilsc.wxDateTime_GetJulianDayNumber,(self,) + _args, _kwargs) | |
379 | return val | |
380 | def GetJDN(self, *_args, **_kwargs): | |
381 | val = apply(utilsc.wxDateTime_GetJDN,(self,) + _args, _kwargs) | |
382 | return val | |
383 | def GetModifiedJulianDayNumber(self, *_args, **_kwargs): | |
384 | val = apply(utilsc.wxDateTime_GetModifiedJulianDayNumber,(self,) + _args, _kwargs) | |
385 | return val | |
386 | def GetMJD(self, *_args, **_kwargs): | |
387 | val = apply(utilsc.wxDateTime_GetMJD,(self,) + _args, _kwargs) | |
388 | return val | |
389 | def GetRataDie(self, *_args, **_kwargs): | |
390 | val = apply(utilsc.wxDateTime_GetRataDie,(self,) + _args, _kwargs) | |
391 | return val | |
392 | def ToTimezone(self, *_args, **_kwargs): | |
393 | val = apply(utilsc.wxDateTime_ToTimezone,(self,) + _args, _kwargs) | |
394 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
395 | return val | |
396 | def MakeTimezone(self, *_args, **_kwargs): | |
397 | val = apply(utilsc.wxDateTime_MakeTimezone,(self,) + _args, _kwargs) | |
398 | if val: val = wxDateTimePtr(val) | |
399 | return val | |
400 | def ToGMT(self, *_args, **_kwargs): | |
401 | val = apply(utilsc.wxDateTime_ToGMT,(self,) + _args, _kwargs) | |
402 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
403 | return val | |
404 | def MakeGMT(self, *_args, **_kwargs): | |
405 | val = apply(utilsc.wxDateTime_MakeGMT,(self,) + _args, _kwargs) | |
406 | if val: val = wxDateTimePtr(val) | |
407 | return val | |
408 | def IsDST(self, *_args, **_kwargs): | |
409 | val = apply(utilsc.wxDateTime_IsDST,(self,) + _args, _kwargs) | |
410 | return val | |
411 | def IsValid(self, *_args, **_kwargs): | |
412 | val = apply(utilsc.wxDateTime_IsValid,(self,) + _args, _kwargs) | |
413 | return val | |
414 | def GetTicks(self, *_args, **_kwargs): | |
415 | val = apply(utilsc.wxDateTime_GetTicks,(self,) + _args, _kwargs) | |
416 | return val | |
417 | def GetYear(self, *_args, **_kwargs): | |
418 | val = apply(utilsc.wxDateTime_GetYear,(self,) + _args, _kwargs) | |
419 | return val | |
420 | def GetMonth(self, *_args, **_kwargs): | |
421 | val = apply(utilsc.wxDateTime_GetMonth,(self,) + _args, _kwargs) | |
422 | return val | |
423 | def GetDay(self, *_args, **_kwargs): | |
424 | val = apply(utilsc.wxDateTime_GetDay,(self,) + _args, _kwargs) | |
425 | return val | |
426 | def GetWeekDay(self, *_args, **_kwargs): | |
427 | val = apply(utilsc.wxDateTime_GetWeekDay,(self,) + _args, _kwargs) | |
428 | return val | |
429 | def GetHour(self, *_args, **_kwargs): | |
430 | val = apply(utilsc.wxDateTime_GetHour,(self,) + _args, _kwargs) | |
431 | return val | |
432 | def GetMinute(self, *_args, **_kwargs): | |
433 | val = apply(utilsc.wxDateTime_GetMinute,(self,) + _args, _kwargs) | |
434 | return val | |
435 | def GetSecond(self, *_args, **_kwargs): | |
436 | val = apply(utilsc.wxDateTime_GetSecond,(self,) + _args, _kwargs) | |
437 | return val | |
438 | def GetMillisecond(self, *_args, **_kwargs): | |
439 | val = apply(utilsc.wxDateTime_GetMillisecond,(self,) + _args, _kwargs) | |
440 | return val | |
441 | def GetDayOfYear(self, *_args, **_kwargs): | |
442 | val = apply(utilsc.wxDateTime_GetDayOfYear,(self,) + _args, _kwargs) | |
443 | return val | |
444 | def GetWeekOfYear(self, *_args, **_kwargs): | |
445 | val = apply(utilsc.wxDateTime_GetWeekOfYear,(self,) + _args, _kwargs) | |
446 | return val | |
447 | def GetWeekOfMonth(self, *_args, **_kwargs): | |
448 | val = apply(utilsc.wxDateTime_GetWeekOfMonth,(self,) + _args, _kwargs) | |
449 | return val | |
450 | def IsWorkDay(self, *_args, **_kwargs): | |
451 | val = apply(utilsc.wxDateTime_IsWorkDay,(self,) + _args, _kwargs) | |
452 | return val | |
453 | def IsEqualTo(self, *_args, **_kwargs): | |
454 | val = apply(utilsc.wxDateTime_IsEqualTo,(self,) + _args, _kwargs) | |
455 | return val | |
456 | def IsEarlierThan(self, *_args, **_kwargs): | |
457 | val = apply(utilsc.wxDateTime_IsEarlierThan,(self,) + _args, _kwargs) | |
458 | return val | |
459 | def IsLaterThan(self, *_args, **_kwargs): | |
460 | val = apply(utilsc.wxDateTime_IsLaterThan,(self,) + _args, _kwargs) | |
461 | return val | |
462 | def IsStrictlyBetween(self, *_args, **_kwargs): | |
463 | val = apply(utilsc.wxDateTime_IsStrictlyBetween,(self,) + _args, _kwargs) | |
464 | return val | |
465 | def IsBetween(self, *_args, **_kwargs): | |
466 | val = apply(utilsc.wxDateTime_IsBetween,(self,) + _args, _kwargs) | |
467 | return val | |
468 | def IsSameDate(self, *_args, **_kwargs): | |
469 | val = apply(utilsc.wxDateTime_IsSameDate,(self,) + _args, _kwargs) | |
470 | return val | |
471 | def IsSameTime(self, *_args, **_kwargs): | |
472 | val = apply(utilsc.wxDateTime_IsSameTime,(self,) + _args, _kwargs) | |
473 | return val | |
474 | def IsEqualUpTo(self, *_args, **_kwargs): | |
475 | val = apply(utilsc.wxDateTime_IsEqualUpTo,(self,) + _args, _kwargs) | |
476 | return val | |
477 | def AddTS(self, *_args, **_kwargs): | |
478 | val = apply(utilsc.wxDateTime_AddTS,(self,) + _args, _kwargs) | |
479 | if val: val = wxDateTimePtr(val) | |
480 | return val | |
481 | def AddDS(self, *_args, **_kwargs): | |
482 | val = apply(utilsc.wxDateTime_AddDS,(self,) + _args, _kwargs) | |
483 | if val: val = wxDateTimePtr(val) | |
484 | return val | |
485 | def SubtractTS(self, *_args, **_kwargs): | |
486 | val = apply(utilsc.wxDateTime_SubtractTS,(self,) + _args, _kwargs) | |
487 | if val: val = wxDateTimePtr(val) | |
488 | return val | |
489 | def SubtractDS(self, *_args, **_kwargs): | |
490 | val = apply(utilsc.wxDateTime_SubtractDS,(self,) + _args, _kwargs) | |
491 | if val: val = wxDateTimePtr(val) | |
492 | return val | |
493 | def Subtract(self, *_args, **_kwargs): | |
494 | val = apply(utilsc.wxDateTime_Subtract,(self,) + _args, _kwargs) | |
495 | if val: val = wxTimeSpanPtr(val) ; val.thisown = 1 | |
496 | return val | |
497 | def __add__TS(self, *_args, **_kwargs): | |
498 | val = apply(utilsc.wxDateTime___add__TS,(self,) + _args, _kwargs) | |
499 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
500 | return val | |
501 | def __add__DS(self, *_args, **_kwargs): | |
502 | val = apply(utilsc.wxDateTime___add__DS,(self,) + _args, _kwargs) | |
503 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
504 | return val | |
505 | def __sub__DT(self, *_args, **_kwargs): | |
506 | val = apply(utilsc.wxDateTime___sub__DT,(self,) + _args, _kwargs) | |
507 | if val: val = wxTimeSpanPtr(val) ; val.thisown = 1 | |
508 | return val | |
509 | def __sub__TS(self, *_args, **_kwargs): | |
510 | val = apply(utilsc.wxDateTime___sub__TS,(self,) + _args, _kwargs) | |
511 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
512 | return val | |
513 | def __sub__DS(self, *_args, **_kwargs): | |
514 | val = apply(utilsc.wxDateTime___sub__DS,(self,) + _args, _kwargs) | |
515 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 | |
516 | return val | |
517 | def __cmp__(self, *_args, **_kwargs): | |
518 | val = apply(utilsc.wxDateTime___cmp__,(self,) + _args, _kwargs) | |
519 | return val | |
520 | def ParseRfc822Date(self, *_args, **_kwargs): | |
521 | val = apply(utilsc.wxDateTime_ParseRfc822Date,(self,) + _args, _kwargs) | |
522 | return val | |
523 | def ParseFormat(self, *_args, **_kwargs): | |
524 | val = apply(utilsc.wxDateTime_ParseFormat,(self,) + _args, _kwargs) | |
525 | return val | |
526 | def ParseDateTime(self, *_args, **_kwargs): | |
527 | val = apply(utilsc.wxDateTime_ParseDateTime,(self,) + _args, _kwargs) | |
528 | return val | |
529 | def ParseDate(self, *_args, **_kwargs): | |
530 | val = apply(utilsc.wxDateTime_ParseDate,(self,) + _args, _kwargs) | |
531 | return val | |
532 | def ParseTime(self, *_args, **_kwargs): | |
533 | val = apply(utilsc.wxDateTime_ParseTime,(self,) + _args, _kwargs) | |
534 | return val | |
535 | def Format(self, *_args, **_kwargs): | |
536 | val = apply(utilsc.wxDateTime_Format,(self,) + _args, _kwargs) | |
537 | return val | |
538 | def FormatDate(self, *_args, **_kwargs): | |
539 | val = apply(utilsc.wxDateTime_FormatDate,(self,) + _args, _kwargs) | |
540 | return val | |
541 | def FormatTime(self, *_args, **_kwargs): | |
542 | val = apply(utilsc.wxDateTime_FormatTime,(self,) + _args, _kwargs) | |
543 | return val | |
544 | def FormatISODate(self, *_args, **_kwargs): | |
545 | val = apply(utilsc.wxDateTime_FormatISODate,(self,) + _args, _kwargs) | |
546 | return val | |
547 | def FormatISOTime(self, *_args, **_kwargs): | |
548 | val = apply(utilsc.wxDateTime_FormatISOTime,(self,) + _args, _kwargs) | |
549 | return val | |
550 | def __repr__(self): | |
551 | return "<C wxDateTime instance at %s>" % (self.this,) | |
552 | ||
553 | def __add__(self, other): | |
554 | if string.find(other.this, 'wxTimeSpan') != -1: | |
555 | return self.__add__TS(other) | |
556 | if string.find(other.this, 'wxDateSpan') != -1: | |
557 | return self.__add__DS(other) | |
558 | raise TypeError, 'Invalid r.h.s. type for __add__' | |
559 | def __sub__(self, other): | |
560 | if string.find(other.this, 'wxDateTime') != -1: | |
561 | return self.__sub__DT(other) | |
562 | if string.find(other.this, 'wxTimeSpan') != -1: | |
563 | return self.__sub__TS(other) | |
564 | if string.find(other.this, 'wxDateSpan') != -1: | |
565 | return self.__sub__DS(other) | |
566 | raise TypeError, 'Invalid r.h.s. type for __sub__' | |
567 | ||
568 | ||
569 | def __repr__(self): | |
570 | return '<wxDateTime: \"%s\" at %s>' % ( self.Format(), self.this) | |
571 | def __str__(self): | |
572 | return self.Format() | |
573 | ||
574 | class wxDateTime(wxDateTimePtr): | |
575 | def __init__(self,*_args,**_kwargs): | |
576 | self.this = apply(utilsc.new_wxDateTime,_args,_kwargs) | |
577 | self.thisown = 1 | |
578 | ||
579 | ||
580 | ||
581 | def wxDateTimeFromTimeT(*_args,**_kwargs): | |
582 | val = wxDateTimePtr(apply(utilsc.new_wxDateTimeFromTimeT,_args,_kwargs)) | |
583 | val.thisown = 1 | |
584 | return val | |
585 | ||
586 | def wxDateTimeFromJDN(*_args,**_kwargs): | |
587 | val = wxDateTimePtr(apply(utilsc.new_wxDateTimeFromJDN,_args,_kwargs)) | |
588 | val.thisown = 1 | |
589 | return val | |
590 | ||
591 | def wxDateTimeFromHMS(*_args,**_kwargs): | |
592 | val = wxDateTimePtr(apply(utilsc.new_wxDateTimeFromHMS,_args,_kwargs)) | |
593 | val.thisown = 1 | |
594 | return val | |
595 | ||
596 | def wxDateTimeFromDMY(*_args,**_kwargs): | |
597 | val = wxDateTimePtr(apply(utilsc.new_wxDateTimeFromDMY,_args,_kwargs)) | |
598 | val.thisown = 1 | |
599 | return val | |
600 | ||
601 | ||
602 | class wxTimeSpanPtr : | |
603 | def __init__(self,this): | |
604 | self.this = this | |
605 | self.thisown = 0 | |
606 | def __del__(self,utilsc=utilsc): | |
607 | if self.thisown == 1 : | |
608 | utilsc.delete_wxTimeSpan(self) | |
609 | def Add(self, *_args, **_kwargs): | |
610 | val = apply(utilsc.wxTimeSpan_Add,(self,) + _args, _kwargs) | |
611 | if val: val = wxTimeSpanPtr(val) | |
612 | return val | |
613 | def Subtract(self, *_args, **_kwargs): | |
614 | val = apply(utilsc.wxTimeSpan_Subtract,(self,) + _args, _kwargs) | |
615 | if val: val = wxTimeSpanPtr(val) | |
616 | return val | |
617 | def Multiply(self, *_args, **_kwargs): | |
618 | val = apply(utilsc.wxTimeSpan_Multiply,(self,) + _args, _kwargs) | |
619 | if val: val = wxTimeSpanPtr(val) | |
620 | return val | |
621 | def Neg(self, *_args, **_kwargs): | |
622 | val = apply(utilsc.wxTimeSpan_Neg,(self,) + _args, _kwargs) | |
623 | if val: val = wxTimeSpanPtr(val) | |
624 | return val | |
625 | def Abs(self, *_args, **_kwargs): | |
626 | val = apply(utilsc.wxTimeSpan_Abs,(self,) + _args, _kwargs) | |
627 | if val: val = wxTimeSpanPtr(val) ; val.thisown = 1 | |
628 | return val | |
629 | def __add__(self, *_args, **_kwargs): | |
630 | val = apply(utilsc.wxTimeSpan___add__,(self,) + _args, _kwargs) | |
631 | if val: val = wxTimeSpanPtr(val) ; val.thisown = 1 | |
632 | return val | |
633 | def __sub__(self, *_args, **_kwargs): | |
634 | val = apply(utilsc.wxTimeSpan___sub__,(self,) + _args, _kwargs) | |
635 | if val: val = wxTimeSpanPtr(val) ; val.thisown = 1 | |
636 | return val | |
637 | def __mul__(self, *_args, **_kwargs): | |
638 | val = apply(utilsc.wxTimeSpan___mul__,(self,) + _args, _kwargs) | |
639 | if val: val = wxTimeSpanPtr(val) ; val.thisown = 1 | |
640 | return val | |
641 | def __rmul__(self, *_args, **_kwargs): | |
642 | val = apply(utilsc.wxTimeSpan___rmul__,(self,) + _args, _kwargs) | |
643 | if val: val = wxTimeSpanPtr(val) ; val.thisown = 1 | |
644 | return val | |
645 | def __neg__(self, *_args, **_kwargs): | |
646 | val = apply(utilsc.wxTimeSpan___neg__,(self,) + _args, _kwargs) | |
647 | if val: val = wxTimeSpanPtr(val) ; val.thisown = 1 | |
648 | return val | |
649 | def __cmp__(self, *_args, **_kwargs): | |
650 | val = apply(utilsc.wxTimeSpan___cmp__,(self,) + _args, _kwargs) | |
651 | return val | |
652 | def IsNull(self, *_args, **_kwargs): | |
653 | val = apply(utilsc.wxTimeSpan_IsNull,(self,) + _args, _kwargs) | |
654 | return val | |
655 | def IsPositive(self, *_args, **_kwargs): | |
656 | val = apply(utilsc.wxTimeSpan_IsPositive,(self,) + _args, _kwargs) | |
657 | return val | |
658 | def IsNegative(self, *_args, **_kwargs): | |
659 | val = apply(utilsc.wxTimeSpan_IsNegative,(self,) + _args, _kwargs) | |
660 | return val | |
661 | def IsEqualTo(self, *_args, **_kwargs): | |
662 | val = apply(utilsc.wxTimeSpan_IsEqualTo,(self,) + _args, _kwargs) | |
663 | return val | |
664 | def IsLongerThan(self, *_args, **_kwargs): | |
665 | val = apply(utilsc.wxTimeSpan_IsLongerThan,(self,) + _args, _kwargs) | |
666 | return val | |
667 | def IsShorterThan(self, *_args, **_kwargs): | |
668 | val = apply(utilsc.wxTimeSpan_IsShorterThan,(self,) + _args, _kwargs) | |
669 | return val | |
670 | def GetWeeks(self, *_args, **_kwargs): | |
671 | val = apply(utilsc.wxTimeSpan_GetWeeks,(self,) + _args, _kwargs) | |
672 | return val | |
673 | def GetDays(self, *_args, **_kwargs): | |
674 | val = apply(utilsc.wxTimeSpan_GetDays,(self,) + _args, _kwargs) | |
675 | return val | |
676 | def GetHours(self, *_args, **_kwargs): | |
677 | val = apply(utilsc.wxTimeSpan_GetHours,(self,) + _args, _kwargs) | |
678 | return val | |
679 | def GetMinutes(self, *_args, **_kwargs): | |
680 | val = apply(utilsc.wxTimeSpan_GetMinutes,(self,) + _args, _kwargs) | |
681 | return val | |
682 | def GetSeconds(self, *_args, **_kwargs): | |
683 | val = apply(utilsc.wxTimeSpan_GetSeconds,(self,) + _args, _kwargs) | |
684 | return val | |
685 | def GetMilliseconds(self, *_args, **_kwargs): | |
686 | val = apply(utilsc.wxTimeSpan_GetMilliseconds,(self,) + _args, _kwargs) | |
687 | return val | |
688 | def Format(self, *_args, **_kwargs): | |
689 | val = apply(utilsc.wxTimeSpan_Format,(self,) + _args, _kwargs) | |
690 | return val | |
691 | def __repr__(self): | |
692 | return "<C wxTimeSpan instance at %s>" % (self.this,) | |
693 | class wxTimeSpan(wxTimeSpanPtr): | |
694 | def __init__(self,*_args,**_kwargs): | |
695 | self.this = apply(utilsc.new_wxTimeSpan,_args,_kwargs) | |
696 | self.thisown = 1 | |
697 | ||
698 | ||
699 | ||
700 | ||
701 | class wxDateSpanPtr : | |
702 | def __init__(self,this): | |
703 | self.this = this | |
704 | self.thisown = 0 | |
705 | def __del__(self,utilsc=utilsc): | |
706 | if self.thisown == 1 : | |
707 | utilsc.delete_wxDateSpan(self) | |
708 | def SetYears(self, *_args, **_kwargs): | |
709 | val = apply(utilsc.wxDateSpan_SetYears,(self,) + _args, _kwargs) | |
710 | if val: val = wxDateSpanPtr(val) | |
711 | return val | |
712 | def SetMonths(self, *_args, **_kwargs): | |
713 | val = apply(utilsc.wxDateSpan_SetMonths,(self,) + _args, _kwargs) | |
714 | if val: val = wxDateSpanPtr(val) | |
715 | return val | |
716 | def SetWeeks(self, *_args, **_kwargs): | |
717 | val = apply(utilsc.wxDateSpan_SetWeeks,(self,) + _args, _kwargs) | |
718 | if val: val = wxDateSpanPtr(val) | |
719 | return val | |
720 | def SetDays(self, *_args, **_kwargs): | |
721 | val = apply(utilsc.wxDateSpan_SetDays,(self,) + _args, _kwargs) | |
722 | if val: val = wxDateSpanPtr(val) | |
723 | return val | |
724 | def GetYears(self, *_args, **_kwargs): | |
725 | val = apply(utilsc.wxDateSpan_GetYears,(self,) + _args, _kwargs) | |
726 | return val | |
727 | def GetMonths(self, *_args, **_kwargs): | |
728 | val = apply(utilsc.wxDateSpan_GetMonths,(self,) + _args, _kwargs) | |
729 | return val | |
730 | def GetWeeks(self, *_args, **_kwargs): | |
731 | val = apply(utilsc.wxDateSpan_GetWeeks,(self,) + _args, _kwargs) | |
732 | return val | |
733 | def GetDays(self, *_args, **_kwargs): | |
734 | val = apply(utilsc.wxDateSpan_GetDays,(self,) + _args, _kwargs) | |
735 | return val | |
736 | def GetTotalDays(self, *_args, **_kwargs): | |
737 | val = apply(utilsc.wxDateSpan_GetTotalDays,(self,) + _args, _kwargs) | |
738 | return val | |
739 | def Add(self, *_args, **_kwargs): | |
740 | val = apply(utilsc.wxDateSpan_Add,(self,) + _args, _kwargs) | |
741 | if val: val = wxDateSpanPtr(val) | |
742 | return val | |
743 | def Subtract(self, *_args, **_kwargs): | |
744 | val = apply(utilsc.wxDateSpan_Subtract,(self,) + _args, _kwargs) | |
745 | if val: val = wxDateSpanPtr(val) | |
746 | return val | |
747 | def Neg(self, *_args, **_kwargs): | |
748 | val = apply(utilsc.wxDateSpan_Neg,(self,) + _args, _kwargs) | |
749 | if val: val = wxDateSpanPtr(val) | |
750 | return val | |
751 | def Multiply(self, *_args, **_kwargs): | |
752 | val = apply(utilsc.wxDateSpan_Multiply,(self,) + _args, _kwargs) | |
753 | if val: val = wxDateSpanPtr(val) | |
754 | return val | |
755 | def __add__(self, *_args, **_kwargs): | |
756 | val = apply(utilsc.wxDateSpan___add__,(self,) + _args, _kwargs) | |
757 | if val: val = wxDateSpanPtr(val) ; val.thisown = 1 | |
758 | return val | |
759 | def __sub__(self, *_args, **_kwargs): | |
760 | val = apply(utilsc.wxDateSpan___sub__,(self,) + _args, _kwargs) | |
761 | if val: val = wxDateSpanPtr(val) ; val.thisown = 1 | |
762 | return val | |
763 | def __mul__(self, *_args, **_kwargs): | |
764 | val = apply(utilsc.wxDateSpan___mul__,(self,) + _args, _kwargs) | |
765 | if val: val = wxDateSpanPtr(val) ; val.thisown = 1 | |
766 | return val | |
767 | def __rmul__(self, *_args, **_kwargs): | |
768 | val = apply(utilsc.wxDateSpan___rmul__,(self,) + _args, _kwargs) | |
769 | if val: val = wxDateSpanPtr(val) ; val.thisown = 1 | |
770 | return val | |
771 | def __neg__(self, *_args, **_kwargs): | |
772 | val = apply(utilsc.wxDateSpan___neg__,(self,) + _args, _kwargs) | |
773 | if val: val = wxDateSpanPtr(val) ; val.thisown = 1 | |
774 | return val | |
775 | def __repr__(self): | |
776 | return "<C wxDateSpan instance at %s>" % (self.this,) | |
777 | class wxDateSpan(wxDateSpanPtr): | |
778 | def __init__(self,*_args,**_kwargs): | |
779 | self.this = apply(utilsc.new_wxDateSpan,_args,_kwargs) | |
780 | self.thisown = 1 | |
781 | ||
782 | ||
783 | ||
784 | ||
785 | ||
786 | ||
787 | #-------------- FUNCTION WRAPPERS ------------------ | |
788 | ||
789 | wxGetLocalTime = utilsc.wxGetLocalTime | |
790 | ||
791 | wxGetUTCTime = utilsc.wxGetUTCTime | |
792 | ||
793 | wxGetCurrentTime = utilsc.wxGetCurrentTime | |
794 | ||
795 | wxGetLocalTimeMillis = utilsc.wxGetLocalTimeMillis | |
796 | ||
797 | def wxConfigBase_Set(*_args, **_kwargs): | |
798 | val = apply(utilsc.wxConfigBase_Set,_args,_kwargs) | |
799 | if val: val = wxConfigBasePtr(val) | |
800 | return val | |
801 | ||
802 | def wxConfigBase_Get(*_args, **_kwargs): | |
803 | val = apply(utilsc.wxConfigBase_Get,_args,_kwargs) | |
804 | if val: val = wxConfigBasePtr(val) | |
805 | return val | |
806 | ||
807 | def wxConfigBase_Create(*_args, **_kwargs): | |
808 | val = apply(utilsc.wxConfigBase_Create,_args,_kwargs) | |
809 | if val: val = wxConfigBasePtr(val) | |
810 | return val | |
811 | ||
812 | wxConfigBase_DontCreateOnDemand = utilsc.wxConfigBase_DontCreateOnDemand | |
813 | ||
814 | wxDateTime_SetCountry = utilsc.wxDateTime_SetCountry | |
815 | ||
816 | wxDateTime_GetCountry = utilsc.wxDateTime_GetCountry | |
817 | ||
818 | wxDateTime_IsWestEuropeanCountry = utilsc.wxDateTime_IsWestEuropeanCountry | |
819 | ||
820 | wxDateTime_GetCurrentYear = utilsc.wxDateTime_GetCurrentYear | |
821 | ||
822 | wxDateTime_ConvertYearToBC = utilsc.wxDateTime_ConvertYearToBC | |
823 | ||
824 | wxDateTime_GetCurrentMonth = utilsc.wxDateTime_GetCurrentMonth | |
825 | ||
826 | wxDateTime_IsLeapYear = utilsc.wxDateTime_IsLeapYear | |
827 | ||
828 | wxDateTime_GetCentury = utilsc.wxDateTime_GetCentury | |
829 | ||
830 | wxDateTime_GetNumberOfDaysinYear = utilsc.wxDateTime_GetNumberOfDaysinYear | |
831 | ||
832 | wxDateTime_GetNumberOfDaysInMonth = utilsc.wxDateTime_GetNumberOfDaysInMonth | |
833 | ||
834 | wxDateTime_GetMonthName = utilsc.wxDateTime_GetMonthName | |
835 | ||
836 | wxDateTime_GetWeekDayName = utilsc.wxDateTime_GetWeekDayName | |
837 | ||
838 | wxDateTime_GetAmPmStrings = utilsc.wxDateTime_GetAmPmStrings | |
839 | ||
840 | wxDateTime_IsDSTApplicable = utilsc.wxDateTime_IsDSTApplicable | |
841 | ||
842 | def wxDateTime_GetBeginDST(*_args, **_kwargs): | |
843 | val = apply(utilsc.wxDateTime_GetBeginDST,_args,_kwargs) | |
844 | if val: val = wxDateTimePtr(val); val.thisown = 1 | |
845 | return val | |
846 | ||
847 | def wxDateTime_GetEndDST(*_args, **_kwargs): | |
848 | val = apply(utilsc.wxDateTime_GetEndDST,_args,_kwargs) | |
849 | if val: val = wxDateTimePtr(val); val.thisown = 1 | |
850 | return val | |
851 | ||
852 | def wxDateTime_Now(*_args, **_kwargs): | |
853 | val = apply(utilsc.wxDateTime_Now,_args,_kwargs) | |
854 | if val: val = wxDateTimePtr(val); val.thisown = 1 | |
855 | return val | |
856 | ||
857 | def wxDateTime_Today(*_args, **_kwargs): | |
858 | val = apply(utilsc.wxDateTime_Today,_args,_kwargs) | |
859 | if val: val = wxDateTimePtr(val); val.thisown = 1 | |
860 | return val | |
861 | ||
862 | def wxTimeSpan_Seconds(*_args, **_kwargs): | |
863 | val = apply(utilsc.wxTimeSpan_Seconds,_args,_kwargs) | |
864 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
865 | return val | |
866 | ||
867 | def wxTimeSpan_Second(*_args, **_kwargs): | |
868 | val = apply(utilsc.wxTimeSpan_Second,_args,_kwargs) | |
869 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
870 | return val | |
871 | ||
872 | def wxTimeSpan_Minutes(*_args, **_kwargs): | |
873 | val = apply(utilsc.wxTimeSpan_Minutes,_args,_kwargs) | |
874 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
875 | return val | |
876 | ||
877 | def wxTimeSpan_Minute(*_args, **_kwargs): | |
878 | val = apply(utilsc.wxTimeSpan_Minute,_args,_kwargs) | |
879 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
880 | return val | |
881 | ||
882 | def wxTimeSpan_Hours(*_args, **_kwargs): | |
883 | val = apply(utilsc.wxTimeSpan_Hours,_args,_kwargs) | |
884 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
885 | return val | |
886 | ||
887 | def wxTimeSpan_Hour(*_args, **_kwargs): | |
888 | val = apply(utilsc.wxTimeSpan_Hour,_args,_kwargs) | |
889 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
890 | return val | |
891 | ||
892 | def wxTimeSpan_Days(*_args, **_kwargs): | |
893 | val = apply(utilsc.wxTimeSpan_Days,_args,_kwargs) | |
894 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
895 | return val | |
896 | ||
897 | def wxTimeSpan_Day(*_args, **_kwargs): | |
898 | val = apply(utilsc.wxTimeSpan_Day,_args,_kwargs) | |
899 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
900 | return val | |
901 | ||
902 | def wxTimeSpan_Weeks(*_args, **_kwargs): | |
903 | val = apply(utilsc.wxTimeSpan_Weeks,_args,_kwargs) | |
904 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
905 | return val | |
906 | ||
907 | def wxTimeSpan_Week(*_args, **_kwargs): | |
908 | val = apply(utilsc.wxTimeSpan_Week,_args,_kwargs) | |
909 | if val: val = wxTimeSpanPtr(val); val.thisown = 1 | |
910 | return val | |
911 | ||
912 | def wxDateSpan_Days(*_args, **_kwargs): | |
913 | val = apply(utilsc.wxDateSpan_Days,_args,_kwargs) | |
914 | if val: val = wxDateSpanPtr(val); val.thisown = 1 | |
915 | return val | |
916 | ||
917 | def wxDateSpan_Day(*_args, **_kwargs): | |
918 | val = apply(utilsc.wxDateSpan_Day,_args,_kwargs) | |
919 | if val: val = wxDateSpanPtr(val); val.thisown = 1 | |
920 | return val | |
921 | ||
922 | def wxDateSpan_Weeks(*_args, **_kwargs): | |
923 | val = apply(utilsc.wxDateSpan_Weeks,_args,_kwargs) | |
924 | if val: val = wxDateSpanPtr(val); val.thisown = 1 | |
925 | return val | |
926 | ||
927 | def wxDateSpan_Week(*_args, **_kwargs): | |
928 | val = apply(utilsc.wxDateSpan_Week,_args,_kwargs) | |
929 | if val: val = wxDateSpanPtr(val); val.thisown = 1 | |
930 | return val | |
931 | ||
932 | def wxDateSpan_Months(*_args, **_kwargs): | |
933 | val = apply(utilsc.wxDateSpan_Months,_args,_kwargs) | |
934 | if val: val = wxDateSpanPtr(val); val.thisown = 1 | |
935 | return val | |
936 | ||
937 | def wxDateSpan_Month(*_args, **_kwargs): | |
938 | val = apply(utilsc.wxDateSpan_Month,_args,_kwargs) | |
939 | if val: val = wxDateSpanPtr(val); val.thisown = 1 | |
940 | return val | |
941 | ||
942 | def wxDateSpan_Years(*_args, **_kwargs): | |
943 | val = apply(utilsc.wxDateSpan_Years,_args,_kwargs) | |
944 | if val: val = wxDateSpanPtr(val); val.thisown = 1 | |
945 | return val | |
946 | ||
947 | def wxDateSpan_Year(*_args, **_kwargs): | |
948 | val = apply(utilsc.wxDateSpan_Year,_args,_kwargs) | |
949 | if val: val = wxDateSpanPtr(val); val.thisown = 1 | |
950 | return val | |
951 | ||
952 | ||
953 | ||
954 | #-------------- VARIABLE WRAPPERS ------------------ | |
955 | ||
956 | wxCONFIG_USE_LOCAL_FILE = utilsc.wxCONFIG_USE_LOCAL_FILE | |
957 | wxCONFIG_USE_GLOBAL_FILE = utilsc.wxCONFIG_USE_GLOBAL_FILE | |
958 | wxCONFIG_USE_RELATIVE_PATH = utilsc.wxCONFIG_USE_RELATIVE_PATH | |
3e1f6ec4 | 959 | wxCONFIG_USE_NO_ESCAPE_CHARACTERS = utilsc.wxCONFIG_USE_NO_ESCAPE_CHARACTERS |