Assignment of icons in code

When I click a button I’d like to programatically change it’s icon, like this:

self.CreateButton.icon(‘fa:plus’)

However, that’s generating this error:

TypeError: ‘str’ object is not callable

Any ideas?

You should be able to do this if I remember correctly.

self.CreateButton.icon = 'fa:plus'

2 Likes

Rookie mistake… thanks. Wonder when I’ll stop being a rookie…

When I walk away from making apps for more than a week I have Google most of my previous questions, ha!

1 Like