📜  如何在python代码示例中设置超链接

📅  最后修改于: 2022-03-11 14:47:08.986000             🧑  作者: Mango

代码示例1
from tkinter import *
canvas1=Tk()
Label(canvas1, text="canvas1").grid(row=0, column=0)
OPEN_HYP=Button(canvas1, text="OPEN", command:enter(canvas1)).grid(row=1, column=0)
def enter():
  canvas2()
def canvas2():
  canvas2=Tk()
  Label(canvas2, text="canvas2").grid(row=0, column=0)