Python Forum
Calling functions by making part of their name with variable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling functions by making part of their name with variable
#3
Depending on what your __scroll_xx functions is doing, you may want to have only one function named "scroll" and provide te direction as an argument to the function.

And what is the purpose of the double underscores here?

Regards, noisefoor
Reply


Messages In This Thread
RE: Calling functions by making part of their name with variable - by noisefloor - Nov-02-2023, 10:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Whys is asterisk and random variable necessary in these functions? rrowhe4d 5 1,570 Aug-05-2022, 07:53 AM
Last Post: Gribouillis
  How to write a part of powershell command as a variable? ilknurg 2 1,169 Jul-26-2022, 11:31 AM
Last Post: ilknurg
  Calling a base class variable from an inherited class CompleteNewb 3 1,766 Jan-20-2022, 04:50 AM
Last Post: CompleteNewb
  Calling functions from within a class: PYQT6 Anon_Brown 4 3,869 Dec-09-2021, 12:40 PM
Last Post: deanhystad
  How to include input as part of variable name Mark17 4 2,580 Oct-01-2021, 06:45 PM
Last Post: Mark17
Question Calling on a Variable using other Variables jacknewport 4 2,069 Jul-23-2021, 04:18 PM
Last Post: jacknewport
  How to use a variable in Python (2.x) to define decimal part? MDRI 4 2,379 May-07-2021, 12:39 AM
Last Post: MDRI
Question trouble with functions "def", calling/defining them Duck_Boom 13 4,527 Oct-21-2020, 03:50 AM
Last Post: Duck_Boom
  Print part of a variable rs74 4 2,644 Jul-27-2020, 04:39 PM
Last Post: rs74
  Function Recognises Variable Without Arguments Or Global Variable Calling. OJGeorge4 1 2,302 Apr-06-2020, 09:14 AM
Last Post: bowlofred

Forum Jump:

User Panel Messages

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