Exemplo n.º 1
0
 def show(self):
     '''show the dialog as a child process'''
     mp_util.child_close_fds()
     from wx.lib.agw.genericmessagedialog import GenericMessageDialog
     app = wx.PySimpleApp()
     # note! font size change is not working. I don't know why yet
     font = wx.Font(self.font_size, wx.MODERN, wx.NORMAL, wx.NORMAL)
     dlg = GenericMessageDialog(None, self.message, self.title,
                                wx.ICON_INFORMATION | wx.OK)
     dlg.SetFont(font)
     dlg.ShowModal()
     app.MainLoop()
Exemplo n.º 2
0
 def call(self):
     '''show the dialog as a child process'''
     mp_util.child_close_fds()
     from MAVProxy.modules.lib import wx_processguard
     from MAVProxy.modules.lib.wx_loader import wx
     from wx.lib.agw.genericmessagedialog import GenericMessageDialog
     app = wx.App(False)
     # note! font size change is not working. I don't know why yet
     font = wx.Font(self.font_size, wx.MODERN, wx.NORMAL, wx.NORMAL)
     dlg = GenericMessageDialog(None, self.message, self.title, wx.ICON_INFORMATION|wx.OK)
     dlg.SetFont(font)
     dlg.ShowModal()
     app.MainLoop()