blob: dd9597a126e1cb03fa8471e1e6eb9b8922aaf6f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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 <http://www.gnu.org/licenses/>.
+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 <http://www.gnu.org/licenses/>.
+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()
|