Python Forum
[tkinter] not getting checkbutton value when clicked
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[tkinter] not getting checkbutton value when clicked
#5
(Sep-20-2020, 02:24 PM)deanhystad Wrote: The reason result.val() is always False is because you create the BooleanVar and never bind it to a control.

Thank you.
Let me see if I understand. Since lambda only returns a single value I'll need a full set of get_display_options defs for each of the various checkboxes. There isn't a way to get all of them back at once easily. Doable, not as clean as I'd like it but I'll take working over elegant failure any day.

Here is a mockup of the screen with all the UI bits shown. The data are from a scrubbed test database but otherwise are real. I hard coded the query and the display and not tied the output section to any buttons. This was done as a proof of concept to show all the other users. I wanted to see what they thought of how it looked and would operate. This is about rev 5 as we fine tuned the displays and how the controls worked to meet all the user expectations.

[Image: view?usp=sharing]
Reply


Messages In This Thread
RE: [tkinter] not getting checkbutton value when clicked - by OogieM - Sep-20-2020, 04:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] Button clicked not working catlessness 10 8,305 Oct-21-2021, 12:36 PM
Last Post: catlessness
  [Tkinter] Hide clicked buttons Rubberduck 6 3,598 Jun-02-2021, 12:44 PM
Last Post: Rubberduck
  Checkbutton writing selection to file blakefindlay 1 2,130 Jan-28-2021, 01:56 PM
Last Post: deanhystad
Question [Tkinter] Checkbutton clicks events does not update visually. nicolaask 1 3,019 Dec-20-2020, 06:11 PM
Last Post: nicolaask
  [Tkinter] How to insert 'Checkbutton' to 'Treeview' and associate each item? water 2 13,272 Dec-19-2020, 05:24 PM
Last Post: water
  Find Checkbutton State PEGylated_User 3 3,138 Oct-23-2020, 12:43 AM
Last Post: Larz60+
  [PyQt] Avoid clicked event from button when button is not physically selected and clicked mart79 2 2,375 May-05-2020, 12:54 PM
Last Post: mart79
  [Tkinter] ttk.Checkbutton set on/off ifigazsi 5 10,554 Apr-04-2020, 07:34 PM
Last Post: deanhystad
  [Tkinter] Displaying Data from a database and run a function when clicked? PythonNPC 1 2,080 Mar-11-2020, 08:16 PM
Last Post: Larz60+
  tkinter checkbutton if checked MC2020 2 6,025 Jan-21-2020, 07:08 PM
Last Post: joe_momma

Forum Jump:

User Panel Messages

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