wxPython – GetBatteryState() function in wxPython
In this article we are going to learn about wx.GetBatteryState() which is a inbuilt parent function present in wxPython. GetBatteryState() returns battery state as one of BATTERY_NORMAL_STATE, BATTERY_LOW_STATE, BATTERY_CRITICAL_STATE, BATTERY_SHUTDOWN_STATE or BATTERY_UNKNOWN_STATE .
BATTERY_UNKNOWN_STATE is also the default on platforms where this feature is not implemented (currently everywhere but MS Windows).
Parameters: No parameters
Return Type: wx.BatteryState
which is wx.BATTERY_LOW_STATE.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course