17 Jul 23:21
Re: Harmful to set sync_trait multiples times for the same pair of traits?
From: Robert Kern <robert.kern@...>
Subject: Re: Harmful to set sync_trait multiples times for the same pair of traits?
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-17 21:21:29 GMT
Subject: Re: Harmful to set sync_trait multiples times for the same pair of traits?
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-17 21:21:29 GMT
On Thu, Jul 17, 2008 at 16:16, Alexander Michael <lxander.m@...> wrote: > Is it harmful to redundantly setup the same pair of traits to sync? > Something like: > > my_obj.sync_trait(name, other_obj) > my_obj.sync_trait(name, other_obj) > > I ask because I'm doing this in a context in which it isn't obvious > whether or not it has already been done (depending on how the user is > interacting with the app). I think it's fine. There is a check to see if the combination of name and other_obj has been synced before doing anything. -- -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
RSS Feed