Example #1
0
 def remote_display_popup(self, txt, temps=10000):
     logger.info(u"{} Popup {}".format(self._le2mclt.uid, txt))
     if self._le2mclt.simulation:
         return 1
     else:
         popup = GuiPopup(txt, temps, self._le2mclt.screen)
         popup.show()
         return 1
Example #2
0
 def remote_display_popup(self, txt, temps=10000):
     logger.info(u"{} Popup {}".format(self._le2mclt.uid, txt))
     if self._le2mclt.simulation:
         return 1
     else: 
         popup = GuiPopup(
             txt, temps, self._le2mclt.screen)
         popup.show()
         return 1
Example #3
0
 def remote_display_information(self, txt, html=True):
     """
     Display the information in a qmessagebox
     :param txt: the text to be displayed
     """
     logger.info(u"Information: {}".format(txt))
     if self._le2mclt.simulation:
         return 1
     else:
         defered = defer.Deferred()
         if self._le2mclt.automatique:
             popup = GuiPopup(defered, txt, 7000, self._le2mclt.screen)
         else:
             popup = GuiPopup(defered, txt, 0, self._le2mclt.screen)
         popup.show()
         return defered
Example #4
0
 def remote_display_information(self, txt, html=True, screensize=(300, 100)):
     """
     Display the information in a qmessagebox
     :param txt: the text to be displayed
     :param html: Whether or not text is in the html format
     :param screensize: the size of the popup screen
     """
     logger.info(u"Information: {}".format(txt))
     if self._le2mclt.simulation:
         return 1
     else:
         defered = defer.Deferred()
         if self._le2mclt.automatique:
             popup = GuiPopup(defered, txt, 7000, self._le2mclt.screen,
                              size=screensize)
         else:
             popup = GuiPopup(defered, txt, 0, self._le2mclt.screen,
                              size=screensize)
         popup.show()
         return defered
Example #5
0
 def remote_display_information(self,
                                txt,
                                html=True,
                                screensize=(300, 100)):
     """
     Display the information in a qmessagebox
     :param txt: the text to be displayed
     :param html: Whether or not text is in the html format
     :param screensize: the size of the popup screen
     """
     logger.info(u"Information: {}".format(txt))
     if self._le2mclt.simulation:
         return 1
     else:
         defered = defer.Deferred()
         if self._le2mclt.automatique:
             popup = GuiPopup(defered,
                              txt,
                              7000,
                              self._le2mclt.screen,
                              size=screensize)
         else:
             popup = GuiPopup(defered,
                              txt,
                              0,
                              self._le2mclt.screen,
                              size=screensize)
         popup.show()
         return defered