class WelcomeWindow(QMainWindow): def __init__(self): super(WelcomeWindow, self).__init__() loadUi("./mainwindow.ui", self) self.setWindowIcon(QIcon('icon.png')) self.runButton.clicked.connect(self.runSlot) # def refreshAll(self): # """ # Set the text of lineEdit once it's valid # """ # self.Videocapture_ = "0" @pyqtSlot() def runSlot(self): """ Called when the user presses the Run button """ print("Clicked Run") ui.hide() # hide the main window self.outputWindow_() # Create and open new output window def outputWindow_(self): """ Created new window for visual output of the video in GUI """ self._new_window = Ui_OutputDialog() self._new_window.show()
class Ui_Dialog(QDialog): def __init__(self): super(Ui_Dialog, self).__init__() loadUi("mainwindow.ui", self) self.runButton.clicked.connect(self.runSlot) self._new_window = None self.Videocapture_ = None def refreshAll(self): """ Set the text of lineEdit once it's valid """ self.Videocapture_ = "0" @pyqtSlot() def runSlot(self): """ Called when the user presses the Run button """ print("Clicked Run") self.refreshAll() print(self.Videocapture_) ui.hide() # hide the main window self.outputWindow_() # Create and open new output window def outputWindow_(self): """ Created new window for vidual output of the video in GUI """ self._new_window = Ui_OutputDialog() self._new_window.show() self._new_window.startVideo(self.Videocapture_) print("Video Played")
def outputWindow_(self): """ Created new window for vidual output of the video in GUI """ self._new_window = Ui_OutputDialog() self._new_window.show() self._new_window.startVideo(self.Videocapture_) print("Video Played")
def outputWindow_(self): """ Created new window for visual output of the video in GUI """ self._new_window = Ui_OutputDialog() self._new_window.show()