I've just started working with PyQt, which is so much nicer to work with than Tk, especially with Qt designer
But these questions might also be answered by PyTk people, as it's probably a general GUI toolkit problem, not PyQt specific (hmmm).
Anyway, I've got a few questions:
1. I've got a function which scans the DVD drive with a seperate process for each track, getting length and chapter information. After each track is scanned, it prints out the results to the shell and puts the result into a QListView. The odd thing is that it prints the text out as it goes along, but only updates the QListView at the end. How can I make it so entries are put into QListView as it goes along?
print "Scanning DVD..."
for i in numtracks:
popen scanning programs, chop out info
item = QListViewItem(self.dvdTracks,None)
print "Track %s: %s" % (i, time_label)
And related to this is that I'd like to change the text on the button that is connected to the function when the function stars and ends, so while it's scanning, the button reads "Scanning...", and then is set back. Again, what seems to happen is that it only changes the button text when it reaches the end of the function.
Any hints/answers are most welcome