Spaces:
Runtime error
Runtime error
Commit
·
e70650a
1
Parent(s):
85346e6
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
import tkinter as tk # this is in python 3.4. For python 2.x import Tkinter
|
| 2 |
from PIL import Image, ImageTk
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
| 5 |
|
| 6 |
class ExampleApp(tk.Tk):
|
| 7 |
def __init__(self):
|
|
|
|
| 1 |
import tkinter as tk # this is in python 3.4. For python 2.x import Tkinter
|
| 2 |
from PIL import Image, ImageTk
|
| 3 |
|
| 4 |
+
import os
|
| 5 |
+
os.system("Xvfb :1 -screen 0 720x720x16 &")
|
| 6 |
+
os.environ['DISPLAY'] = ":1.0"
|
| 7 |
|
| 8 |
class ExampleApp(tk.Tk):
|
| 9 |
def __init__(self):
|