Re: Tkinter.Text widget - how to get text cursor position?

2008-03-19 Thread Alex9968
Alex9968 wrote: > Is it possible to get position (in numbers) of the insertion cursor? As > I understood, Text widget uses mark named INSERT to store it, which is > available globally by just referencing INSERT, but how could I get > actual coordinate numbers of the mark? > I need this because I

Tkinter.Text widget - how to get text cursor position?

2008-03-19 Thread Alex9968
Is it possible to get position (in numbers) of the insertion cursor? As I understood, Text widget uses mark named INSERT to store it, which is available globally by just referencing INSERT, but how could I get actual coordinate numbers of the mark? I need this because I want not just to insert s

Re: Cursor Position.

2005-11-16 Thread snoe
This script should be a good start: from ctypes import * import time PUL = POINTER(c_ulong) class KeyBdInput(Structure): _fields_ = [("wVk", c_ushort), ("wScan", c_ushort), ("dwFlags", c_ulong), ("time", c_ulong), ("dwExtraInfo", PUL)] class

Re: Cursor Position.

2005-11-09 Thread Diez B. Roggisch
> That is my exact problem. I want to have the mouse event captured from > another application window. In this case an image window opened in Paint > Shop Pro that by the way uses Python to make scripts. I would like to be > able to click on the image and get the X,Y positions. I have been able

Re: Cursor Position.

2005-11-09 Thread Samantha
Diez, > Won't be easy - a toolkit (like tkinter) will only capture your mouse > events that are directed towards it's own windows. That is my exact problem. I want to have the mouse event captured from another application window. In this case an image window opened in Paint Shop Pro that by the

Re: Cursor Position.

2005-11-09 Thread Diez B. Roggisch
Samantha wrote: > I will be using Tkinter. All I need is a way to get the X,Y position from a > mouse click. I am trying to have an image loaded to click on, but that seems > to be a problem. So if I can just get the position from the screen of a > graphics program, showing an image, it will wor

Re: Cursor Position.

2005-11-09 Thread Juho Schultz
Samantha wrote: > I will be using Tkinter. All I need is a way to get the X,Y position from a > mouse click. I am trying to have an image loaded to click on, but that seems > to be a problem. So if I can just get the position from the screen of a > graphics program, showing an image, it will wor

Re: Cursor Position.

2005-11-08 Thread Samantha
I will be using Tkinter. All I need is a way to get the X,Y position from a mouse click. I am trying to have an image loaded to click on, but that seems to be a problem. So if I can just get the position from the screen of a graphics program, showing an image, it will work for me. S "Fredrik Lun

Re: Cursor Position.

2005-11-08 Thread Fredrik Lundh
"Samantha" <[EMAIL PROTECTED]> wrote: > Looking at the goto(xy) thread. > Is there a way to get the X,Y position from a cursor click and then use the > position to apply something like a water mark on an image at that position? All GUI toolkits can handle the "click here" part. Which one are you

Cursor Position.

2005-11-08 Thread Samantha
Looking at the goto(xy) thread. Is there a way to get the X,Y position from a cursor click and then use the position to apply something like a water mark on an image at that position? Thanks, -- http://mail.python.org/mailman/listinfo/python-list