parameters: (self, evt)
docstring: Handles the notification events that are
          posted from the list control.
          @param evt: ed_event.NotificationEvent
docstring_summary: Handles the notification events that are
          posted from the list control.
          @param evt: ed_event.NotificationEvent
docstring_tokens: Handles the notification events that are posted from the list control . @param evt : ed_event . NotificationEvent
function: def OnNotify(self, evt):
          """Handles the notification events that are
          posted from the list control.
          @param evt: ed_event.NotificationEvent
  
          """
          e_id = evt.GetId()
          if e_id == ed_glob.ID_PREF:
              # TODO: check for an open existing instance of this config objects
              #       page.
              cfg_obj = evt.GetValue()
              parent = self.GetParent() # SegmentBook
  
              bmp = cfg_obj.GetBitmap()
              if bmp.IsNull():
                  idx = IMG_PLUGIN
              else:
                  imglst = parent.GetImageList()
                  imglst.append(bmp)
                  idx = len(imglst) - 1
  
              label = cfg_obj.GetLabel()
              panel = cfg_obj.GetConfigPanel(parent)
              parent.AddPage(panel, label, True, idx)
              parent.SetSegmentCanClose(parent.GetPageCount() - 1, True)
          else:
              pname, enabled = evt.GetValue()
              pmgr = wx.GetApp().GetPluginManager()
              pmgr.EnablePlugin(pname, enabled)
              self._changed = True
function_tokens: def OnNotify ( self , evt ) : e_id = evt . GetId ( ) if e_id == ed_glob . ID_PREF : # TODO: check for an open existing instance of this config objects #       page. cfg_obj = evt . GetValue ( ) parent = self . GetParent ( ) # SegmentBook bmp = cfg_obj . GetBitmap ( ) if bmp . IsNull ( ) : idx = IMG_PLUGIN else : imglst = parent . GetImageList ( ) imglst . append ( bmp ) idx = len ( imglst ) - 1 label = cfg_obj . GetLabel ( ) panel = cfg_obj . GetConfigPanel ( parent ) parent . AddPage ( panel , label , True , idx ) parent . SetSegmentCanClose ( parent . GetPageCount ( ) - 1 , True ) else : pname , enabled = evt . GetValue ( ) pmgr = wx . GetApp ( ) . GetPluginManager ( ) pmgr . EnablePlugin ( pname , enabled ) self . _changed = True