예제 #1
0
    def information_dialog(self, msg, title='Information'):
        from pychron.core.ui.dialogs import myMessageDialog

        dlg = myMessageDialog(parent=None, message=msg,
                              title=title,
                              severity='information')
        dlg.open()
예제 #2
0
    def information_dialog(self, msg, title='Information'):
        from pychron.core.ui.dialogs import myMessageDialog

        dlg = myMessageDialog(parent=None,
                              message=msg,
                              title=title,
                              severity='information')
        dlg.open()
예제 #3
0
    def warning_dialog(self, msg, sound=None, title='Warning'):
        dialog = myMessageDialog(parent=None,
                                 message=str(msg),
                                 title=title,
                                 severity='warning')
        #         if sound:
        #             from pychron.core.helpers.media import loop_sound
        #             evt = loop_sound(sound)
        #             dialog.close = lambda: self._close_warning(evt)

        #         from threading import current_thread
        #         print current_thread()
        dialog.open()
예제 #4
0
    def warning_dialog(self, msg, sound=None, title='Warning'):
        dialog = myMessageDialog(
            parent=None, message=str(msg),
            title=title,
            severity='warning')
        #         if sound:
        #             from pychron.core.helpers.media import loop_sound
        #             evt = loop_sound(sound)
        #             dialog.close = lambda: self._close_warning(evt)

        #         from threading import current_thread
        #         print current_thread()
        dialog.open()
예제 #5
0
 def information_dialog(self, msg, title='Information'):
     dlg = myMessageDialog(parent=None,
                           message=msg,
                           title=title,
                           severity='information')
     dlg.open()
예제 #6
0
 def information_dialog(self, msg, title='Information'):
     dlg = myMessageDialog(parent=None, message=msg,
                           title=title,
                           severity='information')
     dlg.open()