[yast-devel] DialogTree screen list manipulation
Hi folks, Is there any accepted way to dynamically change the listed screens when using a DialogTree? For example, on a button press that changes some state variable, I'd like my dialog tree to update itself to contain a subset of screens, etc. I can easily manipulate the contents of 'screens' passed to the DialogTree.ShowAndRun when someone navigates off the current screen, but changing the screen list _while on the screen_ doesn't behave well. Thanks in advance for any help, Karol
On Wed, Jun 03, 2015 at 09:56:49AM -0700, Karol Mroz wrote:
Hi folks,
Is there any accepted way to dynamically change the listed screens when using a DialogTree? For example, on a button press that changes some state variable, I'd like my dialog tree to update itself to contain a subset of screens, etc.
I can easily manipulate the contents of 'screens' passed to the DialogTree.ShowAndRun when someone navigates off the current screen, but changing the screen list _while on the screen_ doesn't behave well.
Thanks in advance for any help, Karol
Bump - anyone have some insight into this? Thanks, Karol
Dne 16.7.2015 v 00:20 Karol Mroz napsal(a):
On Wed, Jun 03, 2015 at 09:56:49AM -0700, Karol Mroz wrote: [...]
I can easily manipulate the contents of 'screens' passed to the DialogTree.ShowAndRun when someone navigates off the current screen, but changing the screen list _while on the screen_ doesn't behave well.
Thanks in advance for any help, Karol
Bump - anyone have some insight into this?
Sorry, no idea, I have never used DialogTree in my modules. However, maybe you could modify the tree content directly via Wizard.CreateTree() function, see how the DialogTree does that [1]. Ladislav [1] https://github.com/yast/yast-yast2/blob/master/library/cwm/src/modules/Dialo... -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Karol Mroz
-
Ladislav Slezak