Python Forum
[PyQt] [Solved]Help getting variable from Function in PyQt
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] [Solved]Help getting variable from Function in PyQt
#2
I think you only need

return TableName at the end in def DisplayDatabase(self)

and then

selected_table = self.DisplayDatabase()
self.model.setTable(selected_table)
Reply


Messages In This Thread
RE: Help getting variable from Function in PyQt - by Axel_Erfurt - Jun-30-2022, 08:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] [Solved]Add a SpinBox to MsgBox or Carry Variable Over? Extra 6 1,903 Jun-05-2022, 09:32 PM
Last Post: Extra
  [Tkinter] Passing variable to function. KDog 2 2,206 May-25-2021, 09:15 PM
Last Post: KDog
  return a variable from a function snakes 3 2,850 Apr-09-2021, 06:47 PM
Last Post: snakes
  Call local variable of previous function from another function with Python3 & tkinter Hannibal 5 4,518 Oct-12-2020, 09:16 PM
Last Post: deanhystad
  Global Variable in Event Function? What am I doing wrong here? p_hobbs 1 3,546 Nov-13-2019, 02:50 PM
Last Post: Denni

Forum Jump:

User Panel Messages

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