How can I use Tkinter on a Chromebook?

匿名 (未验证) 提交于 2019-12-03 01:48:02

问题:

Is there any extensions, apps, or online applications that would allow me to use Tkinter on a Chromebook?

I'm trying to make a GUI for a program I've written and Tkinter seems nice, but I use Cloud9 which doesn't allow for graphics.

EDIT: I have an administrative lock on my Chromebook which makes me unable to install Ubuntu, which is why I need an online application, Chrome extension, or Chrome app.

回答1:

You can use tkinter in Chromebook, just follow these steps:

  1. Install Ubuntu in Chromebook, check this link about How to Install Ubuntu on Chromebook.
  2. After Installing Ubuntu, Now check if you have python or not. Open command terminal, type

    python
  3. If you have not installed Python. Open command terminal and type

    sudo apt-get install python3
  4. Now for installing tkinter module type

    sudo apt-get install python3-tk
  5. Now check both python and tkinter from terminal by type

    python3 Python 3.5.1 (default, Sep 26 2013, 03:20:26) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from tkinter import * >>> root = Tk()


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