Change all double leading underscores with sigle leading underscores.

Also make minor refactoring and stylistic changes.
This commit is contained in:
alessandro90
2019-06-01 18:07:37 +02:00
parent 3dea2a0e56
commit 10724e548a
12 changed files with 387 additions and 390 deletions

View File

@@ -35,16 +35,16 @@ class SwitchableLabel(_BaseSwitchableLabel):
Apply the active state colors."""
super().switch_on()
self.__apply_colors(*self.switch_on_colors)
self._apply_colors(*self.switch_on_colors)
def switch_off(self):
"""Extend _BaseSwitchableLabel.switch_off.
Apply the inactive state colors."""
super().switch_off()
self.__apply_colors(*self.switch_off_colors)
self._apply_colors(*self.switch_off_colors)
def __apply_colors(self, start, end):
def _apply_colors(self, start, end):
"""Set text and background color of the label."""
self.setStyleSheet(
f"""