Everything works from post #16. I also need to use this code:
(The idea is to send values from class MyToolBar to the class UseInterestingInfo)
class GetInterestingInfo(): # assume this class: class MyToolBar(mpl_qt.NavigationToolbar2QT): def get_info(self): self.device.read_data() self.process_raw_data() return self.processed_data class UseInterestingInfo(): def use_info(self, interesting_info): pass x = GetInterestingInfo() y = UseInterestingInfo() y.use_info(x.get_info()):but instead of class GetInterestingInfo I have put class MyToolBar(mpl_qt.NavigationToolbar2QT). Please look post #11. How do I call it in this command:
x = MyToolBar()I cannot call it like this, because it needs arguments inside the parentheses. I cannot also put self.plotCanvas, self. So what do I put inside?
(The idea is to send values from class MyToolBar to the class UseInterestingInfo)