Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Online IDE GUI problems
#1
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.
Reply
#2
download python and make sure tkinter is installed, then run it on your system.
Recommended Tutorials:
Reply
#3
Can you not run it locally on your computer?
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#4
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)
Reply
#5
you need a display to draw GUI programs to. Online interpreters cant send the image back to your monitor to draw.
Recommended Tutorials:
Reply
#6
How would I do that?
Reply
#7
you install python onto your computer instead of using an online one.
Recommended Tutorials:
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020