def StartTimer(*args):
"""StartTimer()"""
return _misc_.StartTimer(*args)
+UNKNOWN_PLATFORM = _misc_.UNKNOWN_PLATFORM
+CURSES = _misc_.CURSES
+XVIEW_X = _misc_.XVIEW_X
+MOTIF_X = _misc_.MOTIF_X
+COSE_X = _misc_.COSE_X
+NEXTSTEP = _misc_.NEXTSTEP
+MAC = _misc_.MAC
+MAC_DARWIN = _misc_.MAC_DARWIN
+BEOS = _misc_.BEOS
+GTK = _misc_.GTK
+GTK_WIN32 = _misc_.GTK_WIN32
+GTK_OS2 = _misc_.GTK_OS2
+GTK_BEOS = _misc_.GTK_BEOS
+GEOS = _misc_.GEOS
+OS2_PM = _misc_.OS2_PM
+WINDOWS = _misc_.WINDOWS
+MICROWINDOWS = _misc_.MICROWINDOWS
+PENWINDOWS = _misc_.PENWINDOWS
+WINDOWS_NT = _misc_.WINDOWS_NT
+WIN32S = _misc_.WIN32S
+WIN95 = _misc_.WIN95
+WIN386 = _misc_.WIN386
+WINDOWS_CE = _misc_.WINDOWS_CE
+WINDOWS_POCKETPC = _misc_.WINDOWS_POCKETPC
+WINDOWS_SMARTPHONE = _misc_.WINDOWS_SMARTPHONE
+MGL_UNIX = _misc_.MGL_UNIX
+MGL_X = _misc_.MGL_X
+MGL_WIN32 = _misc_.MGL_WIN32
+MGL_OS2 = _misc_.MGL_OS2
+MGL_DOS = _misc_.MGL_DOS
+WINDOWS_OS2 = _misc_.WINDOWS_OS2
+UNIX = _misc_.UNIX
+X11 = _misc_.X11
+PALMOS = _misc_.PALMOS
+DOS = _misc_.DOS
def GetOsVersion(*args):
"""GetOsVersion() -> (platform, major, minor)"""
def DirSelector(*args, **kwargs):
"""
DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
- long style=DD_DEFAULT_STYLE,
+ long style=wxDD_DEFAULT_STYLE,
Point pos=DefaultPosition, Window parent=None) -> String
"""
return _misc_.DirSelector(*args, **kwargs)
"""
return _misc_.StandardPaths_Get(*args)
+#---------------------------------------------------------------------------
+
+POWER_SOCKET = _misc_.POWER_SOCKET
+POWER_BATTERY = _misc_.POWER_BATTERY
+POWER_UNKNOWN = _misc_.POWER_UNKNOWN
+BATTERY_NORMAL_STATE = _misc_.BATTERY_NORMAL_STATE
+BATTERY_LOW_STATE = _misc_.BATTERY_LOW_STATE
+BATTERY_CRITICAL_STATE = _misc_.BATTERY_CRITICAL_STATE
+BATTERY_SHUTDOWN_STATE = _misc_.BATTERY_SHUTDOWN_STATE
+BATTERY_UNKNOWN_STATE = _misc_.BATTERY_UNKNOWN_STATE
+class PowerEvent(_core.Event):
+ """
+ wx.PowerEvent is generated when the system online status changes.
+ Currently this is only implemented for Windows.
+ """
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """
+ __init__(self, EventType evtType) -> PowerEvent
+
+ wx.PowerEvent is generated when the system online status changes.
+ Currently this is only implemented for Windows.
+ """
+ _misc_.PowerEvent_swiginit(self,_misc_.new_PowerEvent(*args, **kwargs))
+ def Veto(*args, **kwargs):
+ """Veto(self)"""
+ return _misc_.PowerEvent_Veto(*args, **kwargs)
+
+ def IsVetoed(*args, **kwargs):
+ """IsVetoed(self) -> bool"""
+ return _misc_.PowerEvent_IsVetoed(*args, **kwargs)
+
+_misc_.PowerEvent_swigregister(PowerEvent)
+
+wxEVT_POWER_SUSPENDING = _misc_.wxEVT_POWER_SUSPENDING
+wxEVT_POWER_SUSPENDED = _misc_.wxEVT_POWER_SUSPENDED
+wxEVT_POWER_SUSPEND_CANCEL = _misc_.wxEVT_POWER_SUSPEND_CANCEL
+wxEVT_POWER_RESUME = _misc_.wxEVT_POWER_RESUME
+EVT_POWER_SUSPENDING = wx.PyEventBinder( wxEVT_POWER_SUSPENDING , 1 )
+EVT_POWER_SUSPENDED = wx.PyEventBinder( wxEVT_POWER_SUSPENDED , 1 )
+EVT_POWER_SUSPEND_CANCEL = wx.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL , 1 )
+EVT_POWER_RESUME = wx.PyEventBinder( wxEVT_POWER_RESUME , 1 )
+
+
+def GetPowerType(*args):
+ """
+ GetPowerType() -> int
+
+ return the current system power state: online or offline
+ """
+ return _misc_.GetPowerType(*args)
+
+def GetBatteryState(*args):
+ """
+ GetBatteryState() -> int
+
+ return approximate battery state
+ """
+ return _misc_.GetBatteryState(*args)