Why Tk treat F10, F11, F12 diferently from F1...F9?

Discussion in 'Python' started by Gabriel B., Feb 13, 2005.

  1. Gabriel B.

    Gabriel B. Guest

    This is completely odd to me...

    # Bind F1...F12 to <<TabKeys>>
    self.tk.event_add( '<<TabKeys>>', # keys used to switch between the tabs
    '<KeyPress-F1>','<KeyPress-F2>','<KeyPress-F3>','<KeyPress-F4>','<KeyPress-F5>',
    '<KeyPress-F6>','<KeyPress-F7>','<KeyPress-F8>','<KeyPress-F9>','<KeyPress-F10>',
    '<KeyPress-F11>','<KeyPress-F12>'
    )

    self.master.bind_all('<<TabKeys>>', self.__functionKeysPressed )

    def __functionKeysPressed(self, event):
    print event.keysym


    Now, i run the program and press from F1 to F12, and i get:
    F1
    F2
    F3
    F4
    F5
    F6
    F7
    F8
    F9
    L1
    L2


    F10 simply does nothing!
    F11 prints L1
    F12 prints L2

    The only place google takes is not very elucidating :)
    http://64.233.161.104/search?q=cach...l/linuxbin/dpwish tk bind F12|F11 L1|L2&hl=fr

    Anyone has any ideia why is that?
    I surely didn't mind about this if it wasn't for F10 showing nothing.
    I get the return code just to use the same function (and same biding)
    for the 12 buttons since i can't pass arguments to the Command option
    in tk. ...And i'm already considering adding a L1 and L2 check instead
    of F11 and F12 and a 'empty' check for the F10... But that would be
    plain ugly.

    Thanks,
    Gabriel
     
    Gabriel B., Feb 13, 2005
    #1
    1. Advertising

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. =?Utf-8?B?U2FuamVldiBCaGF0aWE=?=

    Regarding Browse information(ALT-F12) feature same as VS 6.0

    =?Utf-8?B?U2FuamVldiBCaGF0aWE=?=, Apr 6, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    878
    =?Utf-8?B?U2FuamVldiBCaGF0aWE=?=
    Apr 8, 2005
  2. MadLucas
    Replies:
    2
    Views:
    71,650
    izmirl
    Oct 24, 2011
  3. imghani
    Replies:
    1
    Views:
    775
    Laurent Bugnion
    Aug 18, 2006
  4. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,996
    Smokey Grindel
    Dec 2, 2006
  5. Jo-ann Guimond

    F11

    Jo-ann Guimond, Oct 10, 2006, in forum: HTML
    Replies:
    10
    Views:
    981
    Travis Newbury
    Oct 13, 2006
Loading...

Share This Page