本文整理匯總了Python中MobileDevice.MobileDevice.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python MobileDevice.__init__方法的具體用法?Python MobileDevice.__init__怎麽用?Python MobileDevice.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MobileDevice.MobileDevice
的用法示例。
在下文中一共展示了MobileDevice.__init__方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from MobileDevice import MobileDevice [as 別名]
# 或者: from MobileDevice.MobileDevice import __init__ [as 別名]
def __init__(self, mcontroller, dev_props):
self.capabilities = [AT_COMM_CAPABILITY, X_ZONE_CAPABILITY]
#Device list with tuplas representating the device (product_id, vendor_id)
self.device_list = [(0xc, 0x1931)]
MobileDevice.__init__(self, mcontroller, dev_props)
示例2: __init__
# 需要導入模塊: from MobileDevice import MobileDevice [as 別名]
# 或者: from MobileDevice.MobileDevice import __init__ [as 別名]
def __init__(self, mcontroller, dev_props):
self.capabilities = [AT_COMM_CAPABILITY, X_ZONE_CAPABILITY, SMS_CAPABILITY, ADDRESSBOOK_CAPABILITY]
#Device list with tuplas representating the device (product_id, vendor_id)
self.device_list = [(0x4400,0x1410),(0x7001, 0x1410)]
MobileDevice.__init__(self, mcontroller, dev_props)
示例3: __init__
# 需要導入模塊: from MobileDevice import MobileDevice [as 別名]
# 或者: from MobileDevice.MobileDevice import __init__ [as 別名]
def __init__(self, mcontroller, dev_props):
self.capabilities = []
self.device_port = None
MobileDevice.__init__(self, mcontroller, dev_props)
示例4: __init__
# 需要導入模塊: from MobileDevice import MobileDevice [as 別名]
# 或者: from MobileDevice.MobileDevice import __init__ [as 別名]
def __init__(self, mcontroller, dev_props):
self.capabilities = []
MobileDevice.__init__(self, mcontroller, dev_props)
示例5: __init__
# 需要導入模塊: from MobileDevice import MobileDevice [as 別名]
# 或者: from MobileDevice.MobileDevice import __init__ [as 別名]
def __init__(self, mcontroller):
self.capabilities = []
MobileDevice.__init__(self, mcontroller, {"info.udi" : "NoneDevice"})
self.pretty_name="NoneDevice"
示例6: __init__
# 需要導入模塊: from MobileDevice import MobileDevice [as 別名]
# 或者: from MobileDevice.MobileDevice import __init__ [as 別名]
def __init__(self, mcontroller, dev_props):
self.capabilities = [AT_COMM_CAPABILITY, X_ZONE_CAPABILITY, SMS_CAPABILITY, ADDRESSBOOK_CAPABILITY, NO_OPTIONS_MENU]
self.device_port = None
MobileDevice.__init__(self, mcontroller, dev_props)