On Thu, Dec 10, 2015 at 7:49 PM Padraig Ó Cuínn <
[email protected]> wrote:

> bah i tried both way and got confused where to put what the code changed
> accordingly but the items never returned to me in the listWidget further
> more i got no errors. its like the function didn't exist
>

I don't really understand what you mean here. You have a function called
create_window(), and it creates objects. These are all local variables. The
only thing that leaves that function is the window object that you return.
You are somehow expecting variables that are creating in another function
of another module to be reachable from your main module. Not possible.

My example showed how to get rid if your functions and just do the
configuration of the widget inside of the __init__()

-- 
> 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/c7c5fae0-9c23-44a5-a0b9-8b7a744fe3af%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/c7c5fae0-9c23-44a5-a0b9-8b7a744fe3af%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/CAPGFgA1c-SPPZoPBnYLimOAdMTT1LdSNkaNvACe%3D8-uOm4kvKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to