PyQt5 help on buttons and grid layout

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Sun Feb 2 12:09:33 EST 2020


d = {}

layout = ...


for key in d:
    layout.addWidget(QButton(...))


On Sun, 2 Feb 2020, 19:59 Souvik Dutta, <souvik.viksou at gmail.com> wrote:

> Hi,
> I want to add about 40 buttons based upon a dictionary. I want them to be
> added to a grid layout. How can I do it easily. Please write the code and
> thank you for your trouble.
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list