parameters: (self, event)
docstring: Opens current selected file.
docstring_summary: Opens current selected file.
docstring_tokens: Opens current selected file .
function: def OnFileOpen(self, event):
          """Opens current selected file."""
          if self.root:
              item = self.tree.GetSelection()
              if item != self.root:
                  self.OnTreeItemActivated(None, item)
                  return
          MsgDlg(self, 'There is no file to load.', 'Error!', wx.OK)
function_tokens: def OnFileOpen ( self , event ) : if self . root : item = self . tree . GetSelection ( ) if item != self . root : self . OnTreeItemActivated ( None , item ) return MsgDlg ( self , 'There is no file to load.' , 'Error!' , wx . OK )