1) There is a wxGetMousePosition(), but there is no wxSetMousePosition()
(I
tested).
I want to be able to move the mouse pointer position with the arrow keys.
Any ideas?.
2) If you define a menu item like this:
menu100 = wxMenu()
menu100.Append(101, "Open...\tCtrl+o")
using a tab as a separator betweeen the command string and the key shortcut,
it is not necessary to define
an accelarator table. Is this a normal behaviour or is this working -by
chance- on my machine? win32, py2.2, wxpy 2.3.2.1
1) wxWindow::WarpPointer
void WarpPointer(int x, int y)
2) I've not tried it, guessing it's correct behaviour.
HTH,
Mike
Jean-Michel Fauth wrote:
···
Hi all,
1) There is a wxGetMousePosition(), but there is no wxSetMousePosition()
(I
tested).
I want to be able to move the mouse pointer position with the arrow keys.
Any ideas?.
2) If you define a menu item like this:
menu100 = wxMenu()
menu100.Append(101, "Open...\tCtrl+o")
using a tab as a separator betweeen the command string and the key shortcut,
it is not necessary to define
an accelarator table. Is this a normal behaviour or is this working -by
chance- on my machine? win32, py2.2, wxpy 2.3.2.1
1) There is a wxGetMousePosition(), but there is no wxSetMousePosition()
(I
tested).
I want to be able to move the mouse pointer position with the arrow keys.
Any ideas?.
It's in screen coordinants like wxGetMousePosition, but you can use
wxWindow::WarpPointer.
2) If you define a menu item like this:
menu100 = wxMenu()
menu100.Append(101, "Open...\tCtrl+o")
using a tab as a separator betweeen the command string and the key
shortcut,
it is not necessary to define
an accelarator table. Is this a normal behaviour or is this working -by
chance- on my machine? win32, py2.2, wxpy 2.3.2.1
It is by design.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!