How do I define root for tkinter in Python 3? I'm using an online Python editor

前端 未结 2 832
情歌与酒
情歌与酒 2020-12-07 06:23

I am trying to make a label, but I can\'t define the root variable! Please help me!

Update: I am using an online Python editor called repl.it

相关标签:
2条回答
  • 2020-12-07 06:58

    In a comment you wrote:

    I'm using an online editor for python as i do not have it downloaded.

    You can't run tkinter via a web server. There is simply nothing you can do to make that work.

    0 讨论(0)
  • 2020-12-07 07:10

    Repl.it doesn't currently support tkinter but it supports a GUI library called REMI. You can see an example here: https://repl.it/@amasad/tictactoe

    0 讨论(0)
提交回复
热议问题