Re: [PyQt] bug in uic.loadUiType

2010-09-07 Thread Phil Thompson
On Tue, 7 Sep 2010 12:33:07 -0400, Tyler Wilson wrote: > I am using the loadUiType function like so: > > ui_class, widget_class = uic.loadUiType("mygui.ui") > self.ui = ui_class() > self.ui.setupUi(self) > > I just installed the latest PyQt on OSX and tried running it, bu

[PyQt] bug in uic.loadUiType

2010-09-07 Thread Tyler Wilson
I am using the loadUiType function like so: ui_class, widget_class = uic.loadUiType("mygui.ui") self.ui = ui_class() self.ui.setupUi(self) I just installed the latest PyQt on OSX and tried running it, but got this error: File "/Library/Python/2.6/site-packages/PyQt4/ui

Re: [PyQt] vertical alignment of richtext in a table view

2010-09-07 Thread Mark Summerfield
On Tue, 7 Sep 2010 12:56:59 +0200 Wolfgang Rohdewald wrote: > On Dienstag 07 September 2010, Mark Summerfield wrote: > > I should have mentioned before that it is better to inherit > > from QStyledItemDelegate rather than QItemDelegate. I'd try > > that first & see if that improves things at all.

Re: [PyQt] vertical alignment of richtext in a table view

2010-09-07 Thread Wolfgang Rohdewald
On Dienstag 07 September 2010, Mark Summerfield wrote: > I should have mentioned before that it is better to inherit > from QStyledItemDelegate rather than QItemDelegate. I'd try > that first & see if that improves things at all. makes no difference. > The offset you need might be made up of the

[PyQt] QWaitCondition and signals/slots across threads

2010-09-07 Thread Peter Bienstman
Hi, Attached is a simple testcase which emits a signal from a worker thread, and then waits until the main thread has released a database connection. It works fine under Linux, but under OSX Qt 4.7RC, PyQt 4.7.4, the slot never get's called, i.e. print "slot called" never gets executed. From G

Re: [PyQt] pyuic4 crash in 4.7.6

2010-09-07 Thread Sybren A. Stüvel
On Tuesday 07 September 2010 11:10:56 Phil Thompson wrote: > As a workaround, edit the driver.py file and remove the encoding > argument from the call to open(). Thanks for the workaround. However, it's not something I'd like to put into our development manual and have every developer go through.

Re: [PyQt] pyuic4 crash in 4.7.6

2010-09-07 Thread Phil Thompson
On Tue, 7 Sep 2010 11:02:56 +0200, "Sybren A. Stüvel" wrote: > Hi list, > > I just upgraded from PyQt4 4.7.4 to 4.7.6, running on Python 2.6.6 on > Windows XP. After the upgrade my pyuic4.bat doesn't work any more. > Here is an example: > > $ echo > test.ui > > $ pyuic4.bat -d -x test.ui -o t

[PyQt] pyuic4 crash in 4.7.6

2010-09-07 Thread Sybren A. Stüvel
Hi list, I just upgraded from PyQt4 4.7.4 to 4.7.6, running on Python 2.6.6 on Windows XP. After the upgrade my pyuic4.bat doesn't work any more. Here is an example: $ echo > test.ui $ pyuic4.bat -d -x test.ui -o test.py Traceback (most recent call last): File "C:\Python26\lib\site-packages\

Re: [PyQt] QDockwidget advice needed

2010-09-07 Thread Algis Kabaila
On Tuesday 07 September 2010 04:57:17 Hans-Peter Jansen wrote: > Dear Al, > > On Saturday 21 August 2010, 03:42:22 Algis Kabaila wrote: > > > Not exactly, but who cares. AFAICS, all you need is the Signals and > > > Slots chapter. Unfortunately, it misses the new style signals (because > > > Phil