Programmer's Corner Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Programmer's Corner - Forums


wxPython: Connect vs EVT_*

 
Post new topic   Reply to topic    Programmer's Corner Forum Index -> Python
Author Message
Cerulean
Gokenin


Joined: 22 Oct 2004
Posts: 742
Location: London, England

PostPosted: Mon Nov 15, 2004 4:32 pm    Post subject: wxPython: Connect vs EVT_* Reply with quote

What are the arguments for and against using EVT_* for event driven stuff? Google turns up nothing.
I'm more used to connecting, but probably only because it's a more C++ type thing to do. EVT_* seems simple enough and normal enough with Python.
Back to top
Algorithms
Dragon


Joined: 21 Oct 2004
Posts: 343
Location: Florida

PostPosted: Wed Nov 17, 2004 12:22 pm    Post subject: Reply with quote

Preference really, I prefer Connect. I think it provides a more Python'es manner for hooking the callbacks and produces a more readable code.
Back to top
Cerulean
Gokenin


Joined: 22 Oct 2004
Posts: 742
Location: London, England

PostPosted: Thu Nov 18, 2004 11:21 am    Post subject: Reply with quote

And I found out its determined the connection is evaluated at run time and not compile time. Pretty useful.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Programmer's Corner Forum Index -> Python All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2002 phpBB Group