def show_message_dialog(synchronization, message, title, style, result # this later one will be modified adding the result of the dialog ): with self.app.tbiconlocked(): if sys.platform.startswith('darwin'): dlg = wx.MessageDialog(None, message, title, style) else: dlg = MyMessageDialog(None, -1, '') dlg.putInfos(message, title, style) self.visible_dialog = dlg r = dlg.ShowModal() result.append(r) # modify result dlg.Destroy() self.visible_dialog = None if synchronization is not None: synchronization.set()
def show_message_dialog( synchronization, message, title, style, result # this later one will be modified adding the result of the dialog ): with self.app.tbiconlocked(): if sys.platform.startswith('darwin'): dlg = wx.MessageDialog(None, message, title, style) else: dlg = MyMessageDialog(None, -1, '') dlg.putInfos(message, title, style) self.visible_dialog = dlg r = dlg.ShowModal() result.append(r) # modify result dlg.Destroy() self.visible_dialog = None if synchronization is not None: synchronization.set()
def show_message_dialog(message, title, style, bold, warning): dlg = MyMessageDialog(None, -1, '') dlg.putInfos(message, title, style, bold, warning) dlg.Show() dlg.Raise()
def show_message_dialog(message, title, style, bold, warning): dlg = MyMessageDialog(None, -1, '') dlg.putInfos(message, title, style, bold, warning) dlg.Show() dlg.Raise()