import Tkinter import math # tk=Tkinter.Tk() canvas=Tkinter.Canvas(tk, height=360, width=480, background="#eeeeff", borderwidth=2).pack(side="bottom") # def plot_x_axe(x0, y0, x1): x_axe =[] xx=(x0, y0) x_axe.append(xx) xx=(x1, y0) x_axe.append(xx) canvas.create_line(x_axe, fill="black", width=2)
При запуске выдает ошибку:
AttributeError: ‘NoneType’ object has no attribute ‘create_line’
Из-за чего вылазит эта ошибка?
