def runTest(frame, nb, log): if not wx.adv.USE_JOYSTICK: from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, 'wx.Joystick is not available on this platform.', 'Sorry', wx.ICON_WARNING) return win elif wx.adv.Joystick.GetNumberJoysticks() != 0: win = JoystickDemoPanel(nb, log) return win else: from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, 'No joysticks are found on this system.', 'Sorry', wx.ICON_WARNING) return win
def runTest(frame, nb, log): if wx.Platform == '__WXMSW__': win = TestPanel(nb, log, frame) return win else: from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, 'This demo only works on Microsoft Windows.', 'Sorry', wx.ICON_WARNING) return win
def runTest(frame, nb, log): try: win = TestPanel(nb, log) return win except NotImplementedError: from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, 'wx.MediaCtrl is not available on this platform.', 'Sorry', wx.ICON_WARNING) return win
def runTest(frame, nb, log): if wx.Platform == "__WXMAC__": from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, 'This demo currently fails on the Mac. The problem is being looked into...', 'Sorry', wx.ICON_WARNING) return win win = TestPanel(nb, log) return win
def runTest(frame, nb, log): if haveJoystick: win = JoystickDemoPanel(nb, log) return win else: from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, 'wx.Joystick is not available on this platform.', 'Sorry', wx.ICON_WARNING) return win
def runTest(frame, nb, log): try: uisim = wx.UIActionSimulator() win = TestPanel(nb, log) return win except NotImplementedError: from wx.lib.msgpanel import MessagePanel win = MessagePanel( nb, "This build of wxWidgets does not include the \n" "wx.UIActionSimulator implementation.", "Sorry", wx.ICON_WARNING) return win
def runTest(frame, nb, log): if not hadImportError: win = TestPanel(nb, log) else: from wx.lib.msgpanel import MessagePanel win = MessagePanel( nb, """\ This demo requires the numpy module, which could not be imported. It probably is not installed (it's not part of the standard Python distribution). See https://pypi.python.org/pypi/numpy for information about the numpy package.""", 'Sorry', wx.ICON_WARNING) return win
def runTest(frame, nb, log): if havePyPdf: win = TestPanel(nb, log) return win else: from wx.lib.msgpanel import MessagePanel win = MessagePanel( nb, 'This demo requires either the\n' 'PyMuPDF see http://pythonhosted.org/PyMuPDF\n' 'or\n' 'PyPDF2 see http://pythonhosted.org/PyPDF2\n' 'package installed.\n', 'Sorry', wx.ICON_WARNING) return win
def runTest(frame, nb, log): if not hadImportError: win = TestPanel(nb, log) else: from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, """\ This demo requires the Numeric or numarray module, which could not be imported. It probably is not installed (it's not part of the standard Python distribution). See the Python site (http://www.python.org) for information on downloading source or binaries.""", 'Sorry', wx.ICON_WARNING) return win
def runTest(frame, nb, log): win = MessagePanel( nb, 'This demo requires either the PyCairo package or the\n' 'cairocffi package, or there is some other unmet dependency.', 'Sorry', wx.ICON_WARNING) return win