Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Newbe question on passing variable data between functions
Forum Updated to NodeBB v4.3 + New Features

Newbe question on passing variable data between functions

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 679 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JackL
    wrote on 16 Nov 2018, 18:41 last edited by
    #1

    I am new to Python, and even newer to Pyqt5. I am trying to pass variable data from two of my defined functions to a third. I have attached the python I am working on. Is there a way to have data from the "def active(self):" and "def radeccalc(self):" functions available to the "def tracking(self):" function. I have tried what I think are the normal ways and they do not work.

    [0_1542393589194_3m_positionRT4.py](Uploading 100%)

    Thank you

    Jack

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      Yaswanth
      wrote on 4 Dec 2018, 12:50 last edited by
      #2

      Function declaration:

      def samFunction(self,value):
              print("This is sample function call ",value)
      

      Function calling:

      self.samFunction(10)
      

      I have PyQt5 installed in my machine.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved