a343ff3be889983ad0e39f47a070ac23d18fa21e,invesalius/gui/frame.py,LayoutToolBar,__bind_events,#LayoutToolBar#,1030

Before Change


            self.EnableTool(tool, False)

    def __bind_events(self):
        ps.Publisher().subscribe(self.SetLayoutButtonOnlyData,
                                 "Set layout button data only")
        ps.Publisher().subscribe(self.SetLayoutButtonFull,
                                 "Set layout button full")

        ps.Publisher().subscribe(self.OnEnableState, "Enable state project")

    def OnEnableState(self, pubsub_evt):
        state = pubsub_evt.data
        if state:

After Change


        self.Realize()
        self.SetStateProjectClose()

    def __bind_events(self):
        
        Bind events related to pubsub.
        
        sub = ps.Publisher().subscribe
        sub(self._EnableState, "Enable state project")
        sub(self._SetLayoutWithTask, "Set layout button data only")
        sub(self._SetLayoutWithoutTask, "Set layout button full")

    def __bind_events_wx(self):
        
        Bind normal events from wx (except pubsub related).
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

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: LayoutToolBar
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


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