Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > how to déplace a circle in canvas python?

Reply
Thread Tools

how to déplace a circle in canvas python?

 
 
olsr.kamal@gmail.com
Guest
Posts: n/a
 
      03-09-2013
how to diplace a circle in canvas tkinter python from position to an autherposition by a mouse click 'press' 'relase' or by delete the déplicated objects in canvas??
 
Reply With Quote
 
 
 
 
Rick Johnson
Guest
Posts: n/a
 
      03-09-2013
On Saturday, March 9, 2013 1:47:43 PM UTC-6, (E-Mail Removed) wrote:
> how to [translate] a circle in canvas tkinter python from
> [one] position to an [another] position


Well "translation" is by definition: "changing an objects position"

> by a mouse click 'press' ['release'] or by delete the [duplicated] objects
> in canvas??


Here's an idea: how about you learn how to translate a Tkinter canvas object via code BEFORE you try to do it via user input? This is called "code evolution along an intelligent linear path", not some "random shots in the dark".

How do you do this you ask, well i'll give you a hint, follow this yellow brick road for enlightenment.

================================================== ==========
STEP 1
================================================== ==========

Take a look at the following methods available to the Tkinter canvas widget here:

http://infohost.nmt.edu/tcc/help/pub...s-methods.html

Can you find a method that will "translate" or "displace" or (insert another synonym here), a canvas object by passing two (x,y) Cartesian coordinates? Once you can accomplish step 1, we can move on to step 2.

================================================== ==========
STEP 2
================================================== ==========

Solving "Step 1" is compulsory!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
help canvas circle problem tylertse Java 0 09-07-2011 03:46 PM
Canvas scrolling - scrollBar become "disabled" on change in canvas Askari Python 2 08-30-2004 02:56 PM
Jisatsu circle (Suicide Circle) Col's Cavern DVD Video 1 06-07-2004 06:55 PM
cut a file to deplace him in an other directory... B.julien Perl 0 04-08-2004 11:10 PM



Advertisments