Set scroll percentage to 0 in __init__

This commit is contained in:
Florian Bruhin 2014-02-19 16:25:15 +01:00
parent 21cf1cc700
commit 1c921a77f6

View File

@ -586,6 +586,11 @@ class _Percentage(TextBase):
"""Reading percentage displayed in the statusbar."""
def __init__(self, parent=None):
"""Constructor. Set percentage to 0%."""
super().__init__(parent)
self.set_perc(0, 0)
@pyqtSlot(int, int)
def set_perc(self, _, y):
"""Setter to be used as a Qt slot.