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()
Ejemplo n.º 2
0
        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()
Ejemplo n.º 3
0
 def show_message_dialog(message, title, style, bold, warning):
     dlg = MyMessageDialog(None, -1, '')
     dlg.putInfos(message, title, style, bold, warning)
     dlg.Show()
     dlg.Raise()
Ejemplo n.º 4
0
 def show_message_dialog(message, title, style, bold, warning):
     dlg = MyMessageDialog(None, -1, '')
     dlg.putInfos(message, title, style, bold, warning)
     dlg.Show()
     dlg.Raise()