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()
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()
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()
def information_dialog(self, msg, title='Information'): dlg = myMessageDialog(parent=None, message=msg, title=title, severity='information') dlg.open()