Example #1
0
    def info(self, msg, dolater=False, color=None):
        """

        """
        if self.logger is not None:
            if globalv.use_logger_display:
                from pychron.displays.gdisplays import gLoggerDisplay

                if globalv.show_infos:
                    args = ('{{:<{}s}} -- {{}}'.format(NAME_WIDTH).format(
                        self.logger.name.strip(), msg))
                    gLoggerDisplay.add_text(args, color=color)

            self._log_('info', msg)
Example #2
0
    def info(self, msg, dolater=False, color=None):
        """

        """
        if self.logger is not None:
            if globalv.use_logger_display:
                from pychron.displays.gdisplays import gLoggerDisplay

                if globalv.show_infos:
                    args = ('{{:<{}s}} -- {{}}'.format(NAME_WIDTH).format(self.logger.name.strip(),
                                                                          msg))
                    gLoggerDisplay.add_text(args, color=color)

            self._log_('info', msg)
Example #3
0
    def info(self, msg, decorate=True, dolater=False, color=None):
        """

        """
        if self.logger is not None:
            if self.use_logger_display:
                from pychron.displays.gdisplays import gLoggerDisplay

                if globalv.show_infos:
                    #                     if not gLoggerDisplay.opened and not gLoggerDisplay.was_closed:
                    #                         invoke_in_main_thread(gLoggerDisplay.edit_traits)

                    args = ('{{:<{}s}} -- {{}}'.format(NAME_WIDTH).format(
                        self.logger.name.strip(), msg))
                    gLoggerDisplay.add_text(args, color=color)

            # if decorate:
            #     msg = '====== {}'.format(msg)

            self._log_('info', msg)
Example #4
0
    def info(self, msg, decorate=True, dolater=False, color=None):
        """

        """
        if self.logger is not None:
            if self.use_logger_display:
                from pychron.displays.gdisplays import gLoggerDisplay

                if globalv.show_infos:
                #                     if not gLoggerDisplay.opened and not gLoggerDisplay.was_closed:
                #                         invoke_in_main_thread(gLoggerDisplay.edit_traits)


                    args = ('{{:<{}s}} -- {{}}'.format(NAME_WIDTH).format(self.logger.name.strip(),
                                                                          msg))
                    gLoggerDisplay.add_text(args, color=color)

            # if decorate:
            #     msg = '====== {}'.format(msg)

            self._log_('info', msg)