Uniformize comments and docstrings syntax

This commit is contained in:
Hugo Posnic 2019-02-21 16:37:03 +01:00
parent 06aad62cb6
commit 915a360a09
2 changed files with 14 additions and 14 deletions

View file

@ -36,12 +36,12 @@ class TrimageTableView(QTableView):
class Ui_trimage():
def get_image(self, image):
""" Get the correct link to the images used in the UI """
"""Get the correct link to the images used in the UI."""
imagelink = path.join(path.dirname(path.dirname(path.realpath(__file__))), "trimage/" + image)
return imagelink
def setupUi(self, trimage):
""" Setup the entire UI """
"""Setup the entire UI."""
trimage.setObjectName("trimage")
trimage.resize(600, 170)
@ -149,7 +149,7 @@ class Ui_trimage():
QMetaObject.connectSlotsByName(trimage)
def retranslateUi(self, trimage):
""" Fill in the texts for all UI elements """
"""Fill in the texts for all UI elements."""
trimage.setWindowTitle(QApplication.translate("trimage",
"Trimage image compressor", None))
self.addfiles.setToolTip(QApplication.translate("trimage",