The error message suggests that the issue is with the line app.CurrentConditions.switchPanel(self) in the TidesButton class in the kv file customPanels.kv. This line is trying to call the switchPanel method of the CurrentConditions object in the app object, but it appears that this method does not exist or that the CurrentConditions object does not exist within the app object. I would recommend checking the code for the app object and the CurrentConditions object to make sure that the switchPanel method is defined and that the CurrentConditions object is correctly defined within the app object.