concepts.simulator.tk.drawing_window.DrawingWindow#

class DrawingWindow[source]#

Bases: object

Methods

clear()

delete(thing)

drawLine(a, b, c[, color])

drawLineSeg(x1, y1, x2, y2[, color, width])

drawOval(x1, y1, x2, y2[, color])

drawPoint(x, y[, color, radius])

drawPolygon(verts[, color, outline])

drawRect(x1, y1, x2, y2[, color])

drawRobot(x, y, noseX, noseY[, color, size])

drawRobotWithNose(x, y, theta[, color, size])

drawText(x, y, label)

drawUnscaledLineSeg(x1, y1, xproj, yproj[, ...])

drawUnscaledRect(x1, y1, xproj, yproj[, color])

scaleX(x)

scaleY(y)

update()

__init__(windowWidth, windowHeight, xMin, xMax, yMin, yMax, title, parent=None)[source]#
__new__(**kwargs)#
clear()[source]#
delete(thing)[source]#
drawLine(a, b, c, color='black')[source]#
drawLineSeg(x1, y1, x2, y2, color='black', width=2)[source]#
drawOval(x1, y1, x2, y2, color='black')[source]#
drawPoint(x, y, color='blue', radius=1)[source]#
drawPolygon(verts, color='black', outline='black')[source]#
drawRect(x1, y1, x2, y2, color='black')[source]#
drawRobot(x, y, noseX, noseY, color='blue', size=8)[source]#
drawRobotWithNose(x, y, theta, color='blue', size=6)[source]#
drawText(x, y, label)[source]#
drawUnscaledLineSeg(x1, y1, xproj, yproj, color='black', width=1)[source]#
drawUnscaledRect(x1, y1, xproj, yproj, color='black')[source]#
scaleX(x)[source]#
scaleY(y)[source]#
update()[source]#