Am 2007-06-05 um 19:44 schrieb <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]>:

> Object1->OnHit to Func1
> Object2->OnHit to Func2
>
> def Func1(self,evt)
>       #call Func with True
>       self.Func(evt,True)
>
> def Func2(self,evt)
>       #call Func with False
>       self.Func(evt,False)
>
> def Func(self,evt,isTrue)
>       #code
>       if isTrue:
>               #code
>       else:
>               #code
>
> Do you see anything wrond with doing it this way?

I would give an attribute to my event object that can be checked by  
the function:

if evt.EventObject.dosomething == True:
        ...

It's probably no good style in MVC terms.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to