Posts: 43
Joined: Thu Jan 18, 2018 12:18 pm


Fri Jan 11, 2019 3:40 pm


I'm relatively new to pypt5 and some help in the direction to take is appreciated.

I want to do something like that shown in the following image


Is there any already code i can reuse or some widget or so?

I would apreciate some guidance, thanks


Re: pyqt

Fri Jan 11, 2019 3:57 pm

Tempted to say - take a random set of bits and throw over the table but I’m in a funny mood today :roll:

The basic layout is created from the grid functionality within the framework.

Code: Select all

layout = QGridLayout()
layout.setColumnStretch(1, 4)
layout.setColumnStretch(2, 4)
layout.addWidget(<your widget here>,0,0)
If you work through http://zetcode.com/gui/pyqt5/ you can pick up the process of creating the GUI window and how the grids work.

edited to put code back in...

Return to “Graphics programming”