-
I continue to poke around the with toga. Sorry for all the noise I'm making, but the learning curve is kinda steep and the current state of development make it hard to know if it's a bug, a limitation of the library or my own mistake. I'm trying to show/hide a widget from the interface by using
The text widget is always visible from the start. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It seams there are 2 problem here. (1) visibility = HIDDEN is not working in GTK. call to (2) display = NONE is not implemented except for CSS |
Beta Was this translation helpful? Give feedback.
-
After some testing, I could propose a patch to fix
|
Beta Was this translation helpful? Give feedback.
-
I've submit a PR #2435 |
Beta Was this translation helpful? Give feedback.
-
No problem about making "noise" - we never learn about bugs if people don't report them! As for whether something is a bug or a limitation: Toga is at v0.4.2. There's a very good chance that any problem you find is a bug or limitation. We do a lot of testing, and we have 100% test branch coverage on both the core and all the desktop and mobile backends, but even that test coverage doesn't mean things are 100% correct if the tests aren't validating the right thing.
The example is a little odd because it includes visibility in the mix, which masks the problem - but yes, it looks like With a few modifications to your test example (modifying the button to be a toggle, rather than just setting display=PACK, and adding a second button to toggle visibility), I don't see any problem with visibility, though. Both macOS and GTK seem able to toggle visibility of the text area widget. If you're seeing an issue with visibility, it's deeper than what is going on in this example. |
Beta Was this translation helpful? Give feedback.
I've submit a PR #2435