codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PyQt5 help on buttons and grid layout


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
>