Re: Tkinter canvas drag/drop obstacle

2008-06-22 Thread Simon Forman
On Jun 22, 7:41 pm, Peter Pearson <[EMAIL PROTECTED]> wrote: > On Fri, 20 Jun 2008 13:41:35 -0300, Guilherme Polo <[EMAIL PROTECTED]> wrote: > > On Fri, Jun 20, 2008 at 1:11 PM, Peter Pearson <[EMAIL PROTECTED]> wrote: > >> Tkinter makes it very easy to drag jpeg images around on a > >> canvas, but

Re: Tkinter canvas drag/drop obstacle

2008-06-22 Thread Peter Pearson
On Fri, 20 Jun 2008 13:41:35 -0300, Guilherme Polo <[EMAIL PROTECTED]> wrote: > On Fri, Jun 20, 2008 at 1:11 PM, Peter Pearson <[EMAIL PROTECTED]> wrote: >> Tkinter makes it very easy to drag jpeg images around on a >> canvas, but I would like to have a "target" change color when >> the cursor drag

Re: Tkinter canvas drag/drop obstacle

2008-06-20 Thread Matimus
On Jun 20, 11:10 am, Matimus <[EMAIL PROTECTED]> wrote: > On Jun 20, 9:11 am, Peter Pearson <[EMAIL PROTECTED]> wrote: > > > Tkinter makes it very easy to drag jpeg images around on a > > canvas, but I would like to have a "target" change color when > > the cursor dragging an image passes over it.

Re: Tkinter canvas drag/drop obstacle

2008-06-20 Thread Matimus
On Jun 20, 9:11 am, Peter Pearson <[EMAIL PROTECTED]> wrote: > Tkinter makes it very easy to drag jpeg images around on a > canvas, but I would like to have a "target" change color when > the cursor dragging an image passes over it.  I seem to be > blocked by the fact that the callbacks that might

Re: Tkinter canvas drag/drop obstacle

2008-06-20 Thread Guilherme Polo
On Fri, Jun 20, 2008 at 1:11 PM, Peter Pearson <[EMAIL PROTECTED]> wrote: > Tkinter makes it very easy to drag jpeg images around on a > canvas, but I would like to have a "target" change color when > the cursor dragging an image passes over it. I seem to be > blocked by the fact that the callback

Re: tkinter, canvas, get color of image?

2008-04-18 Thread skanemupp
On 16 Apr, 00:46, Bryan Oakley <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On 13 Apr, 19:19, Bryan Oakley <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif') > >>> w.create_image(10, 10, image = mapq, anchor

Re: tkinter, canvas, get color of image?

2008-04-15 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > On 13 Apr, 19:19, Bryan Oakley <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif') >>> w.create_image(10, 10, image = mapq, anchor = NW) >>> after doing this is there any possibility of getting the

Re: tkinter, canvas, get color of image?

2008-04-15 Thread skanemupp
On 13 Apr, 19:19, Bryan Oakley <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif') > > w.create_image(10, 10, image = mapq, anchor = NW) > > > after doing this is there any possibility of getting the > > characteristics of the

Re: tkinter, canvas, get color of image?

2008-04-13 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif') > w.create_image(10, 10, image = mapq, anchor = NW) > > after doing this is there any possibility of getting the > characteristics of the GIF-picture(or bitmap if i use that)? > > it would be very helpfu

RE: tkinter canvas

2007-04-19 Thread Gigs_
I want to when create text box with objid = self.canvas.create_text(x, y, width=event.x-x, text='') how can i bind KeyPress to objid? I want that text appear on canvas as i write it. dont know do I need to use self.canvas.create_window, and put in that window Tkinter Text widget. Or I can do it

Re: tkinter canvas

2007-04-19 Thread kyosohma
On Apr 19, 7:24 am, Gigs_ <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Apr 18, 3:43 pm, Gigs_ <[EMAIL PROTECTED]> wrote: > >> how to write text on canvas. i know that i need to use canvas.create_text, > >> but > >> how to write text than when i create_text? > >> or how to access ob

Re: tkinter canvas

2007-04-19 Thread Gigs_
[EMAIL PROTECTED] wrote: > On Apr 18, 3:43 pm, Gigs_ <[EMAIL PROTECTED]> wrote: >> how to write text on canvas. i know that i need to use canvas.create_text, >> but >> how to write text than when i create_text? >> or how to access object ID in canvas and change some options? >> >> thanks in advanc

Re: tkinter canvas

2007-04-18 Thread kyosohma
On Apr 18, 3:43 pm, Gigs_ <[EMAIL PROTECTED]> wrote: > how to write text on canvas. i know that i need to use canvas.create_text, but > how to write text than when i create_text? > or how to access object ID in canvas and change some options? > > thanks in advance! All you need to do is canvas.cre

Re: tkinter canvas

2007-04-06 Thread Gigs_
gigs wrote: > I have made drawing area and few butons. > How can I make when i click my fill button that later when i click on > oval oval gets filled with chousen color? when later click on my oval that is drawn in to change oval color, or to fill color in oval if click in oval with mouse -- ht

Re: tkinter canvas mvc

2007-04-06 Thread James Stroud
Gigs_ wrote: > Hi all! > > I have just finished my tkinter text editor, learning tkinter purpose. > > Now I want to learn canvas so I want to make my paint program, I think > that this will be the best to do over model-view-controler pattern which > I need to learn also. > > Is there any good

Re: Tkinter canvas zooming (sortof)

2006-05-26 Thread Bob Greschke
"Bob Greschke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a program that sucks in a list of equipment positions (Lats/Longs), >opens a Toplevel frame with a canvas set to, for example, 700x480 pixels, >and then does all of the calculations and plots the objects with 10-p

Re: Tkinter Canvas Pre-Buffer

2006-05-05 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Is there a way that using Tkinter I can pre-render the canvas then draw > it on the screen? not really; the canvas is double-buffered, but it regenerates (portions of) the buffer when necessary. if you want to draw in a separate buffer, and use that when updating the w

Re: tkinter canvas

2006-04-04 Thread John McMonagle
On Tue, 2006-04-04 at 16:42 -0700, fxe wrote: > Hi John , thanks a million for the info.Looking at your solution I am sure > this would work. After struggling with this for the past few hours I found > another way just before reading your post. Its as simple as : > > canvas.create_line(x1,y1,x2,y2

Re: tkinter canvas

2006-04-04 Thread fxe
Hi John , thanks a million for the info.Looking at your solution I am sure this would work. After struggling with this for the past few hours I found another way just before reading your post. Its as simple as : canvas.create_line(x1,y1,x2,y2,fill='#00',state=DISABLED) Thanks again, Tom --

Re: tkinter canvas

2006-04-04 Thread John McMonagle
On Tue, 2006-04-04 at 14:47 -0700, fxe wrote: > Hi, > I am using tkinter and I have a canvas that with several rectangles drawn > on it. The rectangles need to have bindings to move and resize them. No > problem here, but I also need to display a grid on the same canvas, for > which I am using cr

Re: Tkinter canvas size determination

2006-02-24 Thread Dean Allen Provins
Martin: Martin Franklin wrote: > Dean Allen Provins wrote: > >> Cameron: >> >> Cameron Laird wrote: >> >>> In article <[EMAIL PROTECTED]>, >>> Dean Allen Provins <[EMAIL PROTECTED]> wrote: >>> I need to determine the size of a canvas while the process is running. Does anyone know of a

Re: Tkinter canvas size determination

2006-02-24 Thread Martin Franklin
Dean Allen Provins wrote: > Cameron: > > Cameron Laird wrote: >> In article <[EMAIL PROTECTED]>, >> Dean Allen Provins <[EMAIL PROTECTED]> wrote: >> >>> I need to determine the size of a canvas while the process is running. >>> Does anyone know of a technique that will let me do that? >>

Re: Tkinter canvas size determination

2006-02-24 Thread Dean Allen Provins
Cameron: Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Dean Allen Provins <[EMAIL PROTECTED]> wrote: > >>I need to determine the size of a canvas while the process is running. >>Does anyone know of a technique that will let me do that? > > . >

Re: Tkinter canvas size determination

2006-02-22 Thread Dean Allen Provins
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Dean Allen Provins <[EMAIL PROTECTED]> wrote: > >>I need to determine the size of a canvas while the process is running. >>Does anyone know of a technique that will let me do that? > > . > . >

Re: Tkinter canvas size determination

2006-02-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dean Allen Provins <[EMAIL PROTECTED]> wrote: >I need to determine the size of a canvas while the process is running. >Does anyone know of a technique that will let me do that? . . . Does >>>

Re: tkinter canvas tag stuff

2005-12-20 Thread Tuvas
It's funny, I can put in more variables than needed, it doesn't even call the function, and yet, magically, the picture appears. Odd... Just wish I could solve the problem... -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter canvas tag stuff

2005-12-16 Thread James Stroud
Tuvas wrote: > I'm trying to display a picture on a Tkinter Canvas. It seems to work > fine the first time that it is displayed. However, subsequent times > running shows an error like this: > > TCLerror: Wrong # args: should be ".-1211472948 .-1211470996 addtag tag > searchCommand ?arg arg ...? >

Re: tkinter canvas tag stuff

2005-12-16 Thread James Stroud
Tuvas wrote: > I'm trying to display a picture on a Tkinter Canvas. It seems to work > fine the first time that it is displayed. However, subsequent times > running shows an error like this: > > TCLerror: Wrong # args: should be ".-1211472948 .-1211470996 addtag tag > searchCommand ?arg arg ...? >