def __init__(self, plotCanvas): NavigationToolbar2Wx.__init__(self, plotCanvas) #remove unwanted Buttons SUBPLOT_BTN = 6 self.DeleteToolByPos(SUBPLOT_BTN)
def __init__(self, *args): NavigationToolbar2Wx.__init__(self, *args) self.play_thread = PlayThread(self, self.canvas) self.play_thread.start()