From e1af4e1c5b059b6be684b810c0bccf08e440b2ea Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Sun, 7 Jun 2015 18:56:29 +0200 Subject: [PATCH] rename Ui_MainWindow in Ui_OSD --- qtosd/qtosd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qtosd/qtosd.py b/qtosd/qtosd.py index 35e4e75..2d4583b 100644 --- a/qtosd/qtosd.py +++ b/qtosd/qtosd.py @@ -662,9 +662,9 @@ class OSDWidget(QWidget): """set the left text""" self.right_txt = txt -class Ui_MainWindow(QMainWindow): +class Ui_OSD(QMainWindow): def __init__(self, parent = None, roundWidget = False, filename = None): - super(Ui_MainWindow, self).__init__(parent) + super(Ui_OSD, self).__init__(parent) self.ui = qtosd_ui.Ui_MainWindow() self.ui.setupUi(self) @@ -724,7 +724,7 @@ if __name__ == "__main__": args = parser.parse_args() app = QApplication(sys.argv) - ui = Ui_MainWindow(filename = args.filename, roundWidget = args.round) + ui = Ui_OSD(filename = args.filename, roundWidget = args.round) ui.show() sys.exit(app.exec_()) -- 2.20.1