rename Ui_MainWindow in Ui_OSD
authorOlivier Matz <zer0@droids-corp.org>
Sun, 7 Jun 2015 16:56:29 +0000 (18:56 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 7 Jun 2015 16:56:29 +0000 (18:56 +0200)
qtosd/qtosd.py

index 35e4e75..2d4583b 100644 (file)
@@ -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_())