1. EuGTK:How To Expand Widgets
- Posted by euphoric (admin) Aug 21, 2019
- 958 views
I'm trying to learn some EuGTK. I need List/TreeViews, unfortunately.
For some reason, my widgets/controls are squished. How do I get them to expand to fill the space?
2. Re: EuGTK:How To Expand Widgets
- Posted by irv Aug 21, 2019
- 954 views
Any widget which doesn't automatically expand can be forced by changing From add() to pack(container,widget,1,1).
I will be home in a couple hours and can test your program.
3. Re: EuGTK:How To Expand Widgets
- Posted by euphoric (admin) Aug 21, 2019
- 918 views
Any widget which doesn't automatically expand can be forced by changing From add() to pack(container,widget,1,1).
I will be home in a couple hours and can test your program.
Ah! OK. I tried pack() but I was using it wrong. Oops.
Looking much better! Thank you!
4. Re: EuGTK:How To Expand Widgets
- Posted by irv Aug 21, 2019
- 937 views
To filter the top-right list so it shows only the sub-categories which match the item selected from the top-left requires you to create a tree-model filter.
Rather than try to code that up for you (since I don't know how and what is expected to match), I've posted a complete program which uses a filter: https://openeuphoria.org/pastey/310.wc
Note that you will obtain your search term from the first box rather than from buttons. Otherwise, the code would be the same.