[PyQt] Size for hint label

2013-01-09 Thread Mads Ipsen
Hi, 4-5 years I needed a widget with the following properties: * Display text incl. HTML * Text should be wrapped on several lines * When the widget is put into a layout, the height of the widget should be adjusted in such a way that the text exactly fits the widget geometry This subwi

[PyQt] HeightForWidth label

2013-01-09 Thread Mads Ipsen
Hi, 4-5 years I needed a widget with the following properties: * Display text incl. HTML * Text should be wrapped on several lines * When the widget is put into a layout, the height of the widget should be adjusted in such a way that the text exactly fits the widget geometry This subwi

[PyQt] QTerminate and Python libs?

2013-01-09 Thread David Cortesi
The doc for QThread.terminate() says its use "is discouraged". I have a thread that calls urllib2 to read an http page. I am having a problem where this thread gets hung somewhere in the urllib2 -- remains to be determined whether in urllib2.urlopen() or in a read() on the resulting object. Anywa

Re: [PyQt] HeightForWidth label

2013-01-09 Thread Hans-Peter Jansen
Dear Mads, Am Mittwoch, 9. Januar 2013, 15:56:29 schrieb Mads Ipsen: > Hi, > > 4-5 years I needed a widget with the following properties: > > * Display text incl. HTML > * Text should be wrapped on several lines > * When the widget is put into a layout, the height of the widget > shoul