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
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
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
> 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
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
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
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
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
"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
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
10 matches
Mail list logo