change label from other class in a different file

后端 未结 2 1338
生来不讨喜
生来不讨喜 2020-12-12 03:09

I am creating an application where I have a main window whit a label and then a docked widget that is in another file. I want to change the main windows label from a button

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 04:06

    I had similar problem in PyQT5 where I was unable to access and set the local variables. After a lot of struggle I found writing to file and reading from file as the best solution. Simply write the desired output to file and access the same info from other file. Works great!

提交回复
热议问题