Re: [PyKDE] QLayout parent

2007-01-31 Thread Tony Cappellini

Message: 2
Date: 28 Jan 2007 11:30 GMT
From: Sibylle Koczian [EMAIL PROTECTED]
Subject: Re: [PyKDE] QLayout parent
To: PyKDE-Liste pykde@mats.imk.fraunhofer.de
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1


I think you've got to replace the calls to addChildLayout by calls to

addLayout. The documentation says addChildLayout is called from addLayout
-

I had originally (before posting the message) used addLayout(). When that
didn't work I took a chance and tried addChildLayout()
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] QLayout parent

2007-01-28 Thread Sibylle Koczian
  Tony Cappellini [EMAIL PROTECTED] schrieb: 
Is this what you mean?
If not- would you add an example?

[snipped]
self.h_layout.addChildLayout(self.v1_layout)
self.h_layout.addChildLayout(self.v2_layout)

Probably wrong, should be:
self.h_layout.addLayout(self.v1_layout)
self.h_layout.addLayout(self.v2_layout)

I've added 2 QVBoxLayouts as children of the QHBoxLayout.
A tiny window appears without any widgets.
What have I not done correctly? 

class Dialog(QtGui.QDialog):

 I think you've got to replace the calls to addChildLayout by calls to 
addLayout. The documentation says addChildLayout is called from addLayout - 
and I suppose addLayout does more than just this call. Trying your example with 
this change worked for me, at all events.
HTH,
Sibylle

-- 
Dr. Sibylle Koczian 
Fasanenstrasse 12 
D-82293 Mittelstetten 
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde