How can I use Tkinter on a Chromebook?

2019-09-07 14:37发布

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条回答
smile是对你的礼貌
2楼-- · 2019-09-07 14:55

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()

查看更多
登录 后发表回答