qProgressbar update questions

35 views
Skip to first unread message

md

unread,
Jul 21, 2014, 5:51:41 PM7/21/14
to python_in...@googlegroups.com
Hey guys

I have a couple functions where I am copying files. I want to update a progressbar on my form. Here is the basic code (this is inside a function on the form) :

inc_val = (100 / hi_val - low_val )

bar_val = 0 
for f_no in range(low_val,hi_val):
bar_val += inc_val
self.ui.pgr_copy_files.Value = bar_val

The value is incrementing .. I am checking with a print statement ... but the bar is not updating.

what am I doing wrong ?

thanks !

Kurian O.S

unread,
Jul 21, 2014, 5:54:23 PM7/21/14
to python_in...@googlegroups.com
self.ui.pgr_copy_files.Value = bar_val

Needs to be 

self.ui.pgr_copy_files.setValue(bar_val)



On Mon, Jul 21, 2014 at 2:51 PM, md <acco...@mdonovan.com> wrote:
self.ui.pgr_copy_files.Value = bar_val




--
--:: Kurian ::--
Message has been deleted

md

unread,
Jul 21, 2014, 6:02:44 PM7/21/14
to python_in...@googlegroups.com
Kurian ... Thanks ... my code was actually self.ui.pgr_copy_files.setValue = bar_val

brain fart i guess .. your response helped me pick it out ...

thanks !!

Kurian O.S

unread,
Jul 21, 2014, 6:05:11 PM7/21/14
to python_in...@googlegroups.com
self.ui.pgr_copy_files.setValue(bar_val) not self.ui.pgr_copy_files.setValue = bar_val

I think that's going wrong.


On Mon, Jul 21, 2014 at 3:00 PM, md <acco...@mdonovan.com> wrote:
Kurian ... thanks .. but I actually made a typo when typing the question ... In my code it is self.ui.pgr_copy_files.setValue = bar_val

still it does not update.


On Monday, July 21, 2014 5:51:41 PM UTC-4, md wrote:

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5e810256-d6a0-4553-916d-c20937563d7f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
--:: Kurian ::--
Reply all
Reply to author
Forward
0 new messages