Using GUI's in Python on an online IDE?

我只是一个虾纸丫 提交于 2020-01-03 08:41:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!