Python Forum
[Tkinter] button, how to do many things
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] button, how to do many things
#3
Yes you understood my question just fine. Cool I definitely didn't think of the getter setting thing, thanks! Also I think I'll try and use your last example in my MachineClass so that it's all handled there instead of in my GUI file.

Otherwise I guess I'll just take the long way to do the increase/decrease and make 2 functions for all 40 settings that I have. That way I don't have to pass any args through the button command.

If I "go the long way" and the amount of code is higher (as in more actual text) it's not like it actually will slow down the program right? Just means the script might be a few kb bigger, which seems harmless.
Reply


Messages In This Thread
button, how to do many things - by nanok66 - Apr-24-2020, 07:55 AM
RE: button, how to do many things - by deanhystad - Apr-24-2020, 04:59 PM
RE: button, how to do many things - by nanok66 - Apr-25-2020, 03:21 AM
RE: button, how to do many things - by deanhystad - Apr-25-2020, 03:57 AM
RE: button, how to do many things - by nanok66 - Apr-25-2020, 09:53 PM
RE: button, how to do many things - by deanhystad - Apr-25-2020, 10:34 PM
RE: button, how to do many things - by nanok66 - Apr-25-2020, 10:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 5,195 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp

Forum Jump:

User Panel Messages

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