Python Forum
Online IDE GUI problems - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Online IDE GUI problems (/thread-5804.html)



Online IDE GUI problems - Lux - Oct-22-2017

I am working on a project in python, and I was trying to use cloud9 to run it online. Unfortunately, my project uses tkinter, which doesn't seem to work in c9. Is there any way to get it to run? I've put a lot of work into this- I don't want to have to throw out my code.


RE: Online IDE GUI problems - metulburr - Oct-22-2017

download python and make sure tkinter is installed, then run it on your system.


RE: Online IDE GUI problems - sparkz_alot - Oct-22-2017

Can you not run it locally on your computer?


RE: Online IDE GUI problems - Lux - Oct-22-2017

I'm doing this online, on a VM. It doesn't give me an error if I just write import tkinter. However, if I add root = tkinter.Tk(), I get an error:
Error:
Traceback (most recent call last):   File "/home/ubuntu/workspace/test.py", line 18, in <module>     root = tkinter.Tk()   File "/usr/lib/python3.4/tkinter/__init__.py", line 1854, in __init__     self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable
(And yes, I can run it locally, but I was hoping to get this working so I could share it and stuff)


RE: Online IDE GUI problems - metulburr - Oct-22-2017

you need a display to draw GUI programs to. Online interpreters cant send the image back to your monitor to draw.


RE: Online IDE GUI problems - Lux - Oct-22-2017

How would I do that?


RE: Online IDE GUI problems - metulburr - Oct-22-2017

you install python onto your computer instead of using an online one.