问题
I have a question about running GUI's. I'm unfortunately running a Chrome OS, so that means I have no choice to use and run my code from an online IDE. I was wondering if it's at all possible to run a GUI package such as as Tkinter or wxWidgets from an online IDE? Any way at all? The main IDE I usually use is Cloud 9.
回答1:
The answer to this is probably no. Packages like Tkinter and wxWidgets are written to interface on a lower level with the OS. Web interfaces such as Cloud9 wouldn't be able to interface with these libraries to display in Chrome OS, as they would have to convert the direct User Interface calls to HTML to be displayed in a browser.
回答2:
As far as I know, there are no online IDEs with Tkinter support. However, since you are using ChromeOS, you could install another Linux distro alongside ChromeOS, allowing you access to an Linux environment with Tkinter. Here's the instruction guide I used myself:
http://lifehacker.com/how-to-install-linux-on-a-chromebook-and-unlock-its-ful-509039343
回答3:
It's not Tkinter, but http://py3.codeskulptor.org/ has a simplegui module which provides a lot of Tkinter's features. (No affiliation.)
来源:https://stackoverflow.com/questions/16278867/using-guis-in-python-on-an-online-ide