Re: Pyqt5 help

2020-02-02 Thread Alan Gauld via Python-list
On 01/02/2020 12:06, Souvik Dutta wrote: > not happening. Now the no. Of labels depend upon something, so I decided to > use a for loop which is not working. Attaching the code below. Can you help? I just spotted something else odd in your code: def initUi(self): ... self.n = {}

Re: Pyqt5 help

2020-02-02 Thread Alan Gauld via Python-list
On 01/02/2020 12:06, Souvik Dutta wrote: > I was making a pyqt5 project and I ran into a problem. I want a button in > one window to add a label in another window when clicked upon. But that is > not happening. What is happening? Don't expect us to run your buggy code! > Now the no. Of labels de

Re: PyQt5 help on buttons and grid layout

2020-02-02 Thread Abdur-Rahmaan Janhangeer
d = {} layout = ... for key in d: layout.addWidget(QButton(...)) On Sun, 2 Feb 2020, 19:59 Souvik Dutta, 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 yo

Re: Pyqt5 help

2020-02-01 Thread Barry Scott
> On 1 Feb 2020, at 12:06, Souvik Dutta wrote: > > I was making a pyqt5 project and I ran into a problem. I want a button in > one window to add a label in another window when clicked upon. But that is > not happening. Now the no. Of labels depend upon something, so I decided to > use a for lo

Re: PyQt5 help.

2020-01-26 Thread Abdur-Rahmaan Janhangeer
suggest a scrollable widget which on loads appends labels with members birthdays in it. If 3 members have birthdays today, it will append 3 labels On Sun, 26 Jan 2020, 21:39 Souvik Dutta, wrote: > I am making a birthday reminder app. I want to show tha label (" Today is > Tom's birthday.") Assu