Python Forum
keeping track of pushbutton click
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
keeping track of pushbutton click
#4
Are you coding from an editor, or using designer?
If from an editor, you should be able to add an argument by using a lambda statement.
I'll find an example (not in Qt, but should work the same)
and post it jast as soon as I do

Example:
b1 = tk.Button(self.f1, text="Page 1", command=lambda: self.show_page(self.page1), width=8, height=2)
Reply


Messages In This Thread
keeping track of pushbutton click - by iFunKtion - Mar-10-2017, 02:51 PM
RE: keeping track of pushbutton click - by Larz60+ - Mar-10-2017, 05:53 PM
RE: keeping track of pushbutton click - by Larz60+ - Mar-13-2017, 12:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGUI] Pushbutton in ANSA Aishaf 2 2,613 Apr-27-2021, 11:22 AM
Last Post: Aishaf
  [PyQt] pushbutton with image issac_n 1 1,777 Jul-13-2020, 05:04 PM
Last Post: Knight18
  [PyQt] Add command to PushButton skaailet 1 1,703 Apr-11-2020, 01:46 PM
Last Post: deanhystad
  TypeError when using PushButton (PyQt5) lmsavk 1 6,752 Mar-03-2019, 04:21 PM
Last Post: Alfalfa
  pyqt clickable pushbutton problem pythonck 1 7,645 Dec-12-2017, 03:38 PM
Last Post: pythonck

Forum Jump:

User Panel Messages

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