Fix wrong pyqtSlot type.

This commit is contained in:
Florian Bruhin 2015-08-02 01:42:16 +02:00
parent e59f533f9d
commit 43db9d4526

View File

@ -48,7 +48,7 @@ class Percentage(textbase.TextBase):
else: else:
self.setText('[{:2}%]'.format(y)) self.setText('[{:2}%]'.format(y))
@pyqtSlot(int) @pyqtSlot(object)
def on_tab_changed(self, tab): def on_tab_changed(self, tab):
"""Update scroll position when tab changed.""" """Update scroll position when tab changed."""
self.set_perc(*tab.scroll_pos) self.set_perc(*tab.scroll_pos)