parameters: (self, evt)
docstring: Loads a profile and refreshes the editors state to match
          the settings found in the profile file.
          @param evt: wx.MenuEvent
docstring_summary: Loads a profile and refreshes the editors state to match
          the settings found in the profile file.
          @param evt: wx.MenuEvent
docstring_tokens: Loads a profile and refreshes the editors state to match the settings found in the profile file . @param evt : wx . MenuEvent
function: def OnLoadProfile(self, evt):
          """Loads a profile and refreshes the editors state to match
          the settings found in the profile file.
          @param evt: wx.MenuEvent
  
          """
          if evt.Id == ID_LOAD_PROFILE:
              dlg = wx.FileDialog(self, _("Load a Custom Profile"),
                                  CONFIG['PROFILE_DIR'], "default.ppb",
                                  _("Profile") + " (*.ppb)|*.ppb", wx.OPEN)
  
              if ebmlib.LockCall(self._mlock, dlg.ShowModal) == wx.ID_OK:
                  profiler.TheProfile.Load(dlg.GetPath())
                  self.PushStatusText(_("Loaded Profile: %s") % \
                                      dlg.GetFilename(), SB_INFO)
              dlg.Destroy()
  
              # Update editor to reflect loaded profile
              for win in wx.GetApp().GetMainWindows():
                  win.nb.UpdateTextControls()
          else:
              evt.Skip()
function_tokens: def OnLoadProfile ( self , evt ) : if evt . Id == ID_LOAD_PROFILE : dlg = wx . FileDialog ( self , _ ( "Load a Custom Profile" ) , CONFIG [ 'PROFILE_DIR' ] , "default.ppb" , _ ( "Profile" ) + " (*.ppb)|*.ppb" , wx . OPEN ) if ebmlib . LockCall ( self . _mlock , dlg . ShowModal ) == wx . ID_OK : profiler . TheProfile . Load ( dlg . GetPath ( ) ) self . PushStatusText ( _ ( "Loaded Profile: %s" ) % dlg . GetFilename ( ) , SB_INFO ) dlg . Destroy ( ) # Update editor to reflect loaded profile for win in wx . GetApp ( ) . GetMainWindows ( ) : win . nb . UpdateTextControls ( ) else : evt . Skip ( )