Pass value from class_1 to class_2 - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: Pass value from class_1 to class_2 (/thread-37423.html) |
Pass value from class_1 to class_2 - hobbyist - Jun-08-2022 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? RE: Pass value from class_1 to class_2 - deanhystad - Jun-09-2022 Show your code RE: Pass value from class_1 to class_2 - hobbyist - Jun-09-2022 Can you please give me an example with signals/slots? RE: Pass value from class_1 to class_2 - deanhystad - Jun-09-2022 Qt documentation provides many examples https://doc.qt.io/qtforpython/examples/index.html RE: Pass value from class_1 to class_2 - hobbyist - Jun-09-2022 Something irrelevant...PyQt5 and PySide6 are open source code, right? |