Custom progress dialog based on DialogConfirm.xml
#1
I am trying to create a custom dialog in my Super Favourites addon based on the new DialogConfirm.xml dialog

In particular I want to be able set the percent of the progress bar, looking at the xml I see that the progress bar looks like this:

Code:
<control type="progress" id="20">
    <description>Progressbar</description>
    <left>45</left>
    <top>252</top>
    <width>825</width>
    <height>24</height>
    <info>System.Progressbar</info>
</control>

So I was hoping that (in python) I could periodically (say 1 per second) update the System.Progressbar value somehow, and the dialog would update to reflect this?

Is this possible or am I barking up the wrong tree.
Reply
#2
Anyone?

I've since tried

Code:
percent = 100 * (1 - float(self.timeout) / float(TIMEOUT))
self.getControl(20).setPercent(int(percent))

But still no joy, no errors, but nothing on the dialog either Sad
Reply

Logout Mark Read Team Forum Stats Members Help
Custom progress dialog based on DialogConfirm.xml0