diff --git a/plater.py b/plater.py index 469eeb2..bfcc975 100755 --- a/plater.py +++ b/plater.py @@ -15,12 +15,14 @@ # You should have received a copy of the GNU General Public License # along with Printrun. If not, see . +import os import sys import wx from printrun.stlplater import StlPlater if __name__ == '__main__': + os.environ['GDK_BACKEND'] = 'x11' app = wx.App(False) main = StlPlater(filenames = sys.argv[1:]) main.Show() diff --git a/pronterface.py b/pronterface.py index dbe295a..4152288 100755 --- a/pronterface.py +++ b/pronterface.py @@ -15,6 +15,7 @@ # You should have received a copy of the GNU General Public License # along with Printrun. If not, see . +import os import sys try: @@ -32,6 +33,7 @@ not yet available for python3. You should try running with python2 instead.""") from printrun.pronterface import PronterApp if __name__ == '__main__': + os.environ['GDK_BACKEND'] = 'x11' app = PronterApp(False) try: app.MainLoop()