Python Forum
Pass value from class_1 to class_2
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass value from class_1 to class_2
#1
I use PyQt5. I have a GUI with menus. So when I press menu_1 it runs class_1 and produces a value, value_1. When I choose menu_2 it runs class_2 and I want to pass the value_1 to class_2 , So that value_2 = value_1 . class_1 is stored in different file than class_2 . How can I achieve that?
Reply
#2
Show your code
Reply
#3
Can you please give me an example with signals/slots?
Reply
#4
Qt documentation provides many examples

https://doc.qt.io/qtforpython/examples/index.html
hobbyist likes this post
Reply
#5
Something irrelevant...PyQt5 and PySide6 are open source code, right?
Reply


Forum Jump:

User Panel Messages

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