a343ff3be889983ad0e39f47a070ac23d18fa21e,invesalius/gui/frame.py,ObjectToolBar,__bind_events,#ObjectToolBar#,843

Before Change


    def __bind_events(self):
        ps.Publisher().subscribe(self.UntoggleAllItems,
                                 "Untoggle object toolbar items")
        ps.Publisher().subscribe(self.OnEnableState, "Enable state project")


    def OnToggle(self, evt):
        id = evt.GetId()

After Change


        
        Bind events related to pubsub.
        
        sub = ps.Publisher().subscribe
        sub(self._EnableState, "Enable state project")
        sub(self._UntoggleAllItems, "Untoggle object toolbar items")

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: invesalius/invesalius3
Commit Name: a343ff3be889983ad0e39f47a070ac23d18fa21e
Time: 2010-02-18
Author: tatiana.alchueyr@gmail.com
File Name: invesalius/gui/frame.py
Class Name: ObjectToolBar
Method Name: __bind_events


Project Name: invesalius/invesalius3
Commit Name: a343ff3be889983ad0e39f47a070ac23d18fa21e
Time: 2010-02-18
Author: tatiana.alchueyr@gmail.com
File Name: invesalius/gui/frame.py
Class Name: SliceToolBar
Method Name: __bind_events


Project Name: invesalius/invesalius3
Commit Name: a343ff3be889983ad0e39f47a070ac23d18fa21e
Time: 2010-02-18
Author: tatiana.alchueyr@gmail.com
File Name: invesalius/gui/frame.py
Class Name: ProjectToolBar
Method Name: __bind_events


Project Name: invesalius/invesalius3
Commit Name: a343ff3be889983ad0e39f47a070ac23d18fa21e
Time: 2010-02-18
Author: tatiana.alchueyr@gmail.com
File Name: invesalius/gui/frame.py
Class Name: LayoutToolBar
Method Name: __bind_events