On Fri, Nov 30, 2018, 6:05 AM kiteh <[email protected]> wrote: > Hi Justin, thank you for the example. > > Perhaps I have not phrase my question properly (was being bad at putting > in words) > Using the example you have given, the reordering only happens if you click > on either buttons.. But I am trying to achieve the ui setup as the > code/tool is being called, and is it possible to set which layout to be at > which particular order? >
I don't think we have misunderstood each other, actually. My example only used button clicks to illustrate the before and after effect. Is it not clear how you could apply this example to your build method to swap the ordering of layouts once before the widget is shown? UI created with Qt Designer will end up saving a reference to every widget and layout that it creates, as fields on the top level widget. So it should be pretty easy to move them around. > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/1106ccf4-3a45-4816-9ac4-a4ceb3627152%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/1106ccf4-3a45-4816-9ac4-a4ceb3627152%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3SU62os_AV%3DJNtHgFQ1W5fRMb6VO8M0n_0QbbSiaKZ7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
