lazy Tkinter question - [focus / virtual keyboard]

Discussion in 'Python' started by Kim Petersen, Oct 31, 2003.

  1. Kim Petersen

    Kim Petersen Guest

    Is it possible in Tkinter to simulate a keystroke into the current
    active (focused widget) by pressing another button (this is for a
    virtual keyboard on a touchscreen pc).

    the troubles i see is:
    on pressing the button focus changes to it
    if you set focus back, some inputfields will act specially (eg. on
    focus out/focus in, keypress)
    i know i have to use the "event" function in tkinter to send the
    keystroke - but i still have the above troubles?

    Input would be extremely appreciated...

    --
    Med Venlig Hilsen / Regards

    Kim Petersen - Kyborg A/S (Udvikling)
    IT - Innovationshuset
    Havneparken 2
    7100 Vejle
    Tlf. +4576408183 || Fax. +4576408188
     
    Kim Petersen, Oct 31, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Canonical Latin

    Read keys without keyboard focus

    Canonical Latin, Jun 19, 2005, in forum: Java
    Replies:
    9
    Views:
    1,216
    Canonical Latin
    Jun 26, 2005
  2. Humpty Dumpty
    Replies:
    0
    Views:
    508
    Humpty Dumpty
    Jan 16, 2004
  3. Replies:
    0
    Views:
    1,704
  4. Simon Andrews

    Prioritising keyboard focus

    Simon Andrews, Jun 21, 2007, in forum: Java
    Replies:
    1
    Views:
    486
    Simon Andrews
    Jun 22, 2007
  5. Ken Pu
    Replies:
    3
    Views:
    831
    Steven D'Aprano
    Jan 16, 2009
  6. galyle
    Replies:
    6
    Views:
    438
    galyle
    Oct 4, 2011
  7. Virtual keyboard focus

    , Dec 20, 2005, in forum: Javascript
    Replies:
    7
    Views:
    252
  8. Roger
    Replies:
    3
    Views:
    597
Loading...