Can you show the code snippet you are using to start the window in your 
userSetup?  You are probably just creating a local variable whose reference 
gets lost after the window is created. 

On Oct 4, 2012, at 6:07 AM, PBLN RAO <[email protected]> wrote:

> Hi,
> 
> I created a application which loads when maya starts up. For this we added a 
> line in userSetup.py
> 
> Now if i want to update a label in that window i get an error label not found.
> 
> In main function we created an instance of the Ui say (testUI).
> 
> if i use testUi.label.setText('Test Update') i variable not found/defined 
> error.
> 
> but if the same python script is copied and executed in script editor and run 
> i can able to update the label. its not happening when loaded at maya startup 
> from userSetup.
> 
> any suggestions....? 
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to