One of the easiest ways to do this, actually, is by using Qt's designer and pyuic to make the python component. You can use a visual builder to make your layouts and add the appropriate widgets.

The nice thing is being able to preview the widgets in various rendering styles as well. If you haven't done this, I highly suggest giving it a try to see if you prefer this method.

That being said, it is always good to be able to generate the code yourself, but the designer is really nice for more complicated layouts of the type you are describing.

On Oct 14, 2007, at 4:24 PM, Andreas Pakulat wrote:

On 14.10.07 22:00:38, [EMAIL PROTECTED] wrote:
Hi guys,
slowly slowly I am getting there, thanks to your assistance! There
is one last thing that I need to address:

within my grid layout, I want to place some widgets on a different
position, than the (row, column) system allows me.  (for example
place two buttons together, under the same (row,column)
combination. Can I do this, or do I have to implement a different
layout?

Sure you can, this involves nested layout. First select the two buttons
and put them into a horizontal layout. Then out the horizontal layout
where the 2 buttons should be. Then select the widget again and put a
gridlayout. Now the 2 buttons will stay together in one cell.

Andreas

--
Your best consolation is the hope that the things you failed to get weren't
really worth having.
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

======
Brian Kelley
OpenEye Scientific Software Inc.
American Twine Office Park
222 3rd Street Suite 3120
Cambdridge, MA 02142
+1 617 374-8844
[EMAIL PROTECTED]


_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to