From 6306a565406d0c6941b9f3cecd355950e8145cf3 Mon Sep 17 00:00:00 2001 From: Metallicow Date: Fri, 9 Oct 2020 09:58:45 -0500 Subject: [PATCH] Fix MessageDialog typo and apply Robins REQz --- demo/GLCanvas.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/demo/GLCanvas.py b/demo/GLCanvas.py index b69308f8..d236f01b 100644 --- a/demo/GLCanvas.py +++ b/demo/GLCanvas.py @@ -17,16 +17,11 @@ try: # http://PyOpenGL.sourceforge.net/ from OpenGL.GL import * from OpenGL.GLU import * - #### OpenGL.GLUT Very old, DO NOT USE! haveOpenGL = True except ImportError: haveOpenGL = False -## try: -## from PIL import Image -## havePIL = True -## except ImportError: -## havePIL = False + #---------------------------------------------------------------------- @@ -70,8 +65,8 @@ class ButtonPanel(wx.Panel): elif not haveOpenGL: dlg = wx.MessageDialog(self, 'The OpenGL package was not found. You can get it at\n' - 'http://PyOpenGL.sourceforge.net/', - '/nor $ pip install PyOpenGL PyOpenGL_accelerate', + 'http://PyOpenGL.sourceforge.net/ \n' + 'or $ pip install PyOpenGL PyOpenGL_accelerate', 'Sorry', wx.OK | wx.ICON_WARNING) dlg.ShowModal() dlg.Destroy()