Hi,
I use QT nc,PyQt NC 3.8 in Win32 platform. python 2.3.
I need show getExistingDire ctory in my program. I catch a question.
When I show a Dialog in a python function.it's ok. exp:
def showDirectory:
dl=QFileDialog. getExistingDire ctory('',None,
'get directory',
'choose directory',1)
print str(dl)
When I call this function in a python thread. the whole program halted
at once. It's seem a infinite loop. exp:
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
Main function start.....
thread = Thread(target = next, args = [params, frmMain, doneflag])
thread.setDaemo n(false)
thread.start()
def next(params, d, doneflag):
dow = Download ()
d.dow = dow
dow.download(pa rams, d.chooseFile, d.updateStatus, d.finished, d.error,
doneflag, 100, d.newpath)
if not d.fin:
d.failed()
def onChooseFile(se lf, default, bucket, f, size, dir, saveas):
if saveas != '':
dl = saveas
else:
if dir:
dl=QFileDialog. getExistingDire ctory('',None,
'get directory',
'choose directory',1)
else:
dl = QFileDialog.get SaveFileName(te mpShow, "*.*",
self, "FileDialog ")
It's very cute I can use QFileDialog.get SaveFileName. Why I can't use
dl=QFileDialog. getExistingDire ctory.
It's a Qt small bug???
Ulysses