Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Event Timestamps



On 02/12/2015 10:41 AM, Mike Small wrote:
> Kent Borg <kentborg at borg.org> writes:
>> store with the event (Python makes is to easy to put it in an
>> attribute), yet they don't capture something so basic. They do an
>> event queue, but don't tell me when the events happened. It is one
>> thing to not tell me about a double-click, but to not even give me the
>> data to decide for myself? Stupid!
> YAGNI gone wild?  I think you've written that you don't like Perl, but
> have you considered using a language with an on average more experienced
> user base?  What are your thoughts on Common Lisp? That seems to tend
> towards completeness from what I've seen from playing with it.
>
Python certainly tells you when an event happens. You have to bind the
specific event. For instance, I use a multi-column list (under Tkinter).
So, when someone double clicks on an element in one of the rows,
columns, I get a callback.
widget.bind(event, callback)
Here is the main Python page on events in Python 2.
https://docs.python.org/2/library/tkinter.html#bindings-and-events

The other graphical managers in Python also support events.

I

-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id:B7F14F2F
PGP Key fingerprint: D937 A424 4836 E052 2E1B  8DC6 24D7 000F B7F1 4F2F





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org