Tuesday, May 7, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1683  / 1 Year ago, mon, march 13, 2023, 11:01:09

I'm trying to implement hide function in my application.
What I want is to have this little arrow ">" when is hide and "V" when is visible.
I know how to make it so its hides and shows but I need that little arrow to change whenever I click on it....



I'm using quickly and python to create my app.
I tried set_icon_from_stock function but it returns error:



AttributeError: 'ToolButton' object has no attribute 'set_icon_from_stock'


Above example of arrow I talking about.



Thanks



enter image description here


More From » application-development

 Answers
0

Just use an Expander, that's what Update Manager is using here, too. It's drawing the arrows and taking care about to show and hide what's inside.



Screenshot Glade


[#36184] Tuesday, March 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eighethod

Total Points: 358
Total Questions: 112
Total Answers: 119

Location: Cayman Islands
Member since Fri, Mar 4, 2022
2 Years ago
;