So why is the behavior different? In both cases it is the same proc that is bound to the same <Enter> event, just the binding tag is different. I find this confusing. What's wrong?
I see! Hey, many thanks for the tip, it works now. I had a suspicion that binding <Enter> to the whole Button class was disrupting something. Now it's clear. So one has to be careful with these types of general bindings.
On 7/27/22 17:31, xol odho wrote:
I see! Hey, many thanks for the tip, it works now. I had a suspicion
that binding <Enter> to the whole Button class was disrupting
something. Now it's clear. So one has to be careful with these types
of general bindings.
Generally it is a good idea to look at what bindings exist on a class
before doing a binding to it.
bind <Button>
will return all the events currently bound to the Button class.
Am 28.07.22 um 17:21 schrieb Gerald Lester:
On 7/27/22 17:31, xol odho wrote:
I see! Hey, many thanks for the tip, it works now. I had a suspicion
that binding <Enter> to the whole Button class was disrupting
something. Now it's clear. So one has to be careful with these types
of general bindings.
Generally it is a good idea to look at what bindings exist on a class
before doing a binding to it.
bind <Button>
will return all the events currently bound to the Button class.
You meant surely
bind Button
rather than
bind <Button>
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 714 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 140:12:43 |
| Calls: | 12,087 |
| Files: | 14,998 |
| Messages: | 6,517,423 |