def OnComponentBlacklistRemove(self, event):
    selection = self.blacklistBox.Selection
    if (selection != wx.NOT_FOUND):
        self.blacklistBox.Delete(selection)
        if (self.blacklistBox.Count > 0):
            self.blacklistBox.SetSelection(max((selection - 1), 0))
def OnComponentBlacklistRemove(self, event):
    selection = self.blacklistBox.Selection
    if (selection != wx.NOT_FOUND):
        self.blacklistBox.Delete(selection)
        if (self.blacklistBox.Count > 0):
            self.blacklistBox.SetSelection(max((selection - 1), 0))