473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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=cache...+L1%7CL2&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
Jul 18 '05 #1
0 1280

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Yulia Yegenov | last post by:
I have a query that looks like this: (I insert the date created with the php date function) $status = "Active"; //(I cannot use the mysql timestamp function for other reason). $curdate =...
8
by: Xamle Eng | last post by:
One of the things I find most unnatural about most XML APIs is that they try to abstract both elements and text into some kind of "node" object when they have virtually nothing in common. The...
1
by: chandy | last post by:
Hi, How can I treat multiple, contiguous records as one record? i.e., tblData( a varchar, t datetime )
7
by: Steven T. Hatton | last post by:
"Reduced subclassing. Factory Method (107) often produces a hierarchy of Creator classes that parallels the product class hierarchy. The Prototype pattern lets you clone a prototype instead of...
11
by: Jeevan | last post by:
Hi, I have some data which I am getting from a socket. I am currently storing the data in an array (so that future reading of the data will be fast as it will be in RAM instead of hard disk)....
1
by: Randall Parker | last post by:
In places where ASP.Net does the handling of controls for you does it treat controls as null or as zero length strings?
0
by: SkipSailors | last post by:
VS.2003 C# We have a set of projects that have a smattering of auto-generated C# source. In gneral we would like to enforce XML Comments on all our public members, and we would like to treat...
7
by: SteveT | last post by:
Can someone point me in the right direction? Somewhere I read that you reference a strongly typed dataset as if it were a class structure. For example, <SomeTests> <TestsGroups> <Group>...
7
by: Wanjun Yu | last post by:
Hi All, On my windows form, when the user hits the return key, I'll need to treat it as a tab key. i.e. when the user hits a return, the focus will move to the next item in the tab-order on the...
0
by: Larry Lard | last post by:
Recently we've been on a code quality drive and have eliminated all compilation warnings from our code. To preserve this state, we've turned 'Treat warnings as errors' to 'All' in all our projects...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.