I'm working on a script in python,tkinter that draws a triangle and moves it around the screen. unfortunately I can't get the arrow to move. I've tried using canvas.move() but that wants an x and a y not the set of 3 coordinates I have to make it a triangle. Is there something I'm missing or maybe an easier way to move it? and help would be appreciated.
Thropian 3
Junior Poster in Training
Recommended Answers
Jump to PostThose are the coordinates you need to set for a traingle. Most graphical programs use an x,y coordinate system like so.
|-----------------x
|(0,0) (1,0) (2,0)
|(0,1) (1,1) (2,1)
|(0,2) (1,2) (2,2)
yA triangle can be described as 3 points or this may also suprise you but possibly 4 …
Jump to PostThis short code might just give you a hint:
http://www.daniweb.com/software-development/python/threads/191210/1558321#post1558321
All 7 Replies
predator78 22
Junior Poster
Thropian 3
Junior Poster in Training
TrustyTony 888
pyMod Team Colleague Featured Poster
predator78 22
Junior Poster
vegaseat 1,735
DaniWeb's Hypocrite Team Colleague
predator78
commented:
figured you might have the code already :D +3
Thropian 3
Junior Poster in Training
Thropian 3
Junior Poster in Training
predator78
commented:
glad you got it working :) +3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.