Python Forum
Pass 2x Variables from Function to another Function
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass 2x Variables from Function to another Function
#1
I am trying to avoid using Global variables to solve the problem i am having of passing 2 variables from one function to another function.

Function 1 is an 'Accept Button' taking some user input information from input fields and producing upon pressing accept Variable_1 and Variable_2

Function 2 is a 'Test Button' taking Variable_1 and Variable_2 and using them as inputs for the test code

How do i get Variable 1 & 2 into my second function without setting them as globals?
Reply


Messages In This Thread
Pass 2x Variables from Function to another Function - by MTom5 - Aug-14-2018, 01:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The function of double underscore back and front in a class function name? Pedroski55 9 850 Feb-19-2024, 03:51 PM
Last Post: deanhystad
  How to pass encrypted pass to pyodbc script tester_V 0 944 Jul-27-2023, 12:40 AM
Last Post: tester_V
  How to print variables in function? samuelbachorik 3 980 Dec-31-2022, 11:12 PM
Last Post: stevendaprano
  User-defined function to reset variables? Mark17 3 1,748 May-25-2022, 07:22 PM
Last Post: Gribouillis
  Exit function from nested function based on user input Turtle 5 3,057 Oct-10-2021, 12:55 AM
Last Post: Turtle
  How to pass variables from one class to another hobbyist 18 11,229 Oct-01-2021, 05:54 PM
Last Post: deanhystad
  Regex - Pass Flags as a function argument? muzikman 6 3,754 Sep-06-2021, 03:43 PM
Last Post: muzikman
Question Stopping a parent function from a nested function? wallgraffiti 1 3,751 May-02-2021, 12:21 PM
Last Post: Gribouillis
Question exiting the outer function from the inner function banidjamali 3 3,677 Feb-27-2021, 09:47 AM
Last Post: banidjamali
  Possible to dynamically pass arguments to a function? grimm1111 2 2,288 Feb-21-2021, 05:57 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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