本文整理汇总了Python中blueman.gui.MessageArea.MessageArea.close方法的典型用法代码示例。如果您正苦于以下问题:Python MessageArea.close方法的具体用法?Python MessageArea.close怎么用?Python MessageArea.close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类blueman.gui.MessageArea.MessageArea
的用法示例。
在下文中一共展示了MessageArea.close方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: success
# 需要导入模块: from blueman.gui.MessageArea import MessageArea [as 别名]
# 或者: from blueman.gui.MessageArea.MessageArea import close [as 别名]
def success(obj, result, _user_data):
logging.info("success")
prog.message(_("Success!"))
if isinstance(service, SerialPort) and SERIAL_PORT_SVCLASS_ID == service.short_uuid:
MessageArea.show_message(_("Serial port connected to %s") % result, None, "dialog-information")
else:
MessageArea.close()
self.unset_op(device)
示例2: success
# 需要导入模块: from blueman.gui.MessageArea import MessageArea [as 别名]
# 或者: from blueman.gui.MessageArea.MessageArea import close [as 别名]
def success(*args2):
dprint("success", " ".join(args2))
prog.message(_("Success!"))
if isinstance(service, SerialPort) and SERIAL_PORT_SVCLASS_ID == uuid128_to_uuid16(service.uuid):
MessageArea.show_message(_("Serial port connected to %s") % args2[0], "dialog-information")
else:
MessageArea.close()
self.unset_op(device)
示例3: success
# 需要导入模块: from blueman.gui.MessageArea import MessageArea [as 别名]
# 或者: from blueman.gui.MessageArea.MessageArea import close [as 别名]
def success(obj, result, _user_data):
dprint("success")
prog.message(_("Success!"))
if isinstance(service, SerialPort) and SERIAL_PORT_SVCLASS_ID == uuid128_to_uuid16(service.uuid):
MessageArea.show_message(_("Serial port connected to %s") % result, "dialog-information")
else:
MessageArea.close()
self.unset_op(device)
示例4: success
# 需要导入模块: from blueman.gui.MessageArea import MessageArea [as 别名]
# 或者: from blueman.gui.MessageArea.MessageArea import close [as 别名]
def success(*args2):
try:
uuid16 = sdp_get_serial_type(device.Address, args[0])
except:
uuid16 = 0
dprint("success", args2)
prog.message(_("Success!"))
if service_id == "serial" and SERIAL_PORT_SVCLASS_ID in uuid16:
MessageArea.show_message(_("Serial port connected to %s") % args2[0], "dialog-information")
else:
MessageArea.close()
self.unset_op(device)
示例5: reply
# 需要导入模块: from blueman.gui.MessageArea import MessageArea [as 别名]
# 或者: from blueman.gui.MessageArea.MessageArea import close [as 别名]
def reply():
self.unset_op(device)
prog.message(_("Success!"))
MessageArea.close()
示例6: reply
# 需要导入模块: from blueman.gui.MessageArea import MessageArea [as 别名]
# 或者: from blueman.gui.MessageArea.MessageArea import close [as 别名]
def reply():
prog_msg(_("Success!"))
MessageArea.close()