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