I have name of class in string like:
conf[0] = 'smtp_config'
and i want to run method like:
self.ui.smtp_config.setText("....")
How can i do this in python? :)
Try getattr(self.ui,conf[0]).setText(...)
hasattr call first is probably preferable :)