From: Olivier Matz Date: Sun, 7 Jun 2015 16:56:29 +0000 (+0200) Subject: rename Ui_MainWindow in Ui_OSD X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e1af4e1c5b059b6be684b810c0bccf08e440b2ea;p=fpv.git rename Ui_MainWindow in Ui_OSD --- 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_())