I've got a nested tabLayout that has problems with displaying it's content.
The layouts hierarchy looks like: window -> tabLayout -> paneLayout -> 
tabLayout -> paneLayout -> textScrollList 
After showing the window, the active tab is empty, and I have to switch to 
other tab to refresh.
This is a big problem when i want to draw only one outer tab and one inner 
- there's no way to refresh. 

Here's a demo (pardon MEL, but python does the same):


proc test_tabLayout()
{
        window;
 
        tabLayout;
        for($i=0; $i<5; ++$i)
        {
                paneLayout;
                        tabLayout;
                                for($j=0; $j<5; ++$j)
                                {
                                        paneLayout;
 
                                        $textScrollListUI = `textScrollList`;
 
                                        for($k=0; $k<5; ++$k)
                                        {
                                                string $item = 
($i+1)*($j+1)*($k+1);
                                                textScrollList -e -a $item 
$textScrollListUI;
                                        }
 
                                        setParent..; // to inner tab
                                }
                                setParent..; // to outer pane
                        setParent..; // to outer tab
        }
 
        showWindow;
}
 
test_tabLayout;



-- 
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/6f527ace-4c0d-4b94-a8b8-86d673728d99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to