當前位置: 首頁>>代碼示例>>Python>>正文


Python MessageArea.close方法代碼示例

本文整理匯總了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)
開發者ID:cschramm,項目名稱:blueman,代碼行數:12,代碼來源:ManagerDeviceMenu.py

示例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)
開發者ID:KunLiu1210,項目名稱:blueman,代碼行數:12,代碼來源:ManagerDeviceMenu.py

示例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)
開發者ID:yars068,項目名稱:blueman,代碼行數:12,代碼來源:ManagerDeviceMenu.py

示例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)
開發者ID:GinoM,項目名稱:blueman,代碼行數:17,代碼來源:ManagerDeviceMenu.py

示例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()
開發者ID:hackerharp,項目名稱:blueman,代碼行數:6,代碼來源:ManagerDeviceMenu.py

示例6: reply

# 需要導入模塊: from blueman.gui.MessageArea import MessageArea [as 別名]
# 或者: from blueman.gui.MessageArea.MessageArea import close [as 別名]
				def reply():
					prog_msg(_("Success!"))
					MessageArea.close()
開發者ID:namili,項目名稱:blueman,代碼行數:5,代碼來源:ManagerDeviceMenu.py


注:本文中的blueman.gui.MessageArea.MessageArea.close方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。