PyQt ProgressBar

L

luca72

Hello i have made anly one test like this:


from time import sleep
barra = QtGui.QProgressBar()
barra.setMinimum(0)
barra.setMaximum(10)
for a in range(10):
sleep(1)
barra.setValue(a)
app.processEvents()

But the bar remain fix to 0% don't increase.

can you tell me how to prooced

Regards

Luca
 
A

Alexandre Badez

No one can help pls

Regards

Luca

I've written a little app for testing this:

import sys
import time
from PyQt4 import QtGui

app = QtGui.QApplication(sys.argv)

barra = QtGui.QProgressBar()
barra.show()
barra.setMinimum(0)
barra.setMaximum(10)
for a in range(10):
time.sleep(1)
barra.setValue(a)
app.exec_()


For me, it work great (on windows, with python 2.4.4 and Qt 4.1 and
PyQt 4.0).
Could you tell us a bit more about your problems ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top