Python Forum
[PyQt] Problem how to click a button inside a group box?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Problem how to click a button inside a group box?
(Aug-05-2019, 01:16 PM)Denni Wrote: As stated on many forums when asking for help it behooves you greatly to give a MRE (Minimal Reproducible Example) of your issue - the key being Reproducible as in if I copy/paste what you have posted I can run it to see what you are seeing so that I can more easily help you with YOUR issue. So this would be a win-win for you in that your question will get answered faster. Giving code snippets that do not allow just copy/paste run means whomever might help you will either not help you or will be delayed in helping you.

Now since you have not included an MRE I will have to guess the issue you are actually having appears somewhere else within your code because other than this code looking more complex than it needs to -- it appears (without being able to actually test it) that it would work just fine assuming everything else (that I cannot see) was coded correctly.

This line calls the (I assume button) clicked event and if the rest is coded correctly should work just fine and call the "self.add_pipe" function without incident.


Note personally I would have used a semi-standard prefix of btnAddPipe to indicate this was a button rather than response_ because at a glance yours does not indicate at all that its a normal object like a button and as such could just as well as be anything else.

Thanks for the advice and noted. I will keep it in mind for future questions.
The problem has indeed been solved.

Messages In This Thread
RE: Problem how to click a button inside a group box? - by mart79 - Aug-05-2019, 01:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Kivy] Acces atributes from a button defined in a class inside the .kv Tomli 2 170 Jun-10-2021, 01:05 AM
Last Post: Tomli
  [Tkinter] Modify Class on Button Click KDog 4 1,264 May-11-2021, 08:43 PM
Last Post: KDog
  tkinter python button position problem Nick_tkinter 3 704 Jan-31-2021, 05:15 AM
Last Post: deanhystad
  [Tkinter] Button click problem using OOP JohnB 5 672 Oct-21-2020, 12:43 PM
Last Post: JohnB
  tkinter | Button color text on Click Maryan 2 729 Oct-09-2020, 08:56 PM
Last Post: Maryan
  Closing window on button click not working kenwatts275 4 771 May-03-2020, 01:59 PM
Last Post: deanhystad
  Problem about image and button scotesse 5 931 Apr-27-2020, 10:09 AM
Last Post: scotesse
  Problem with Submit button Tkinter Reldaing 2 1,232 Jan-05-2020, 01:58 AM
Last Post: balenaucigasa
  [Tkinter] Checking button click in Tkinter GalaxyCoyote 3 4,475 Oct-20-2019, 03:28 AM
Last Post: GalaxyCoyote
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 2,074 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020