def setup(self, qtbot): # Create dialog to show this instance self.dialog = QtWidgets.QMainWindow() qtbot.add_widget(self.dialog) # Start main event loop self.prog = application.mainWindow(self.dialog)
def setup(self, qtbot): # Create dialog to show this instance self.dialog = QtWidgets.QMainWindow() # Start main event loop self.prog = application.mainWindow(self.dialog) self.graphInstance = graph.CalmaPlot(600, 600, 100, True)
def setup(self, qtbot): self.signalStubs = SignalStubs() self.applicationStubs = ApplicationStub() self.audioInstance = audio.Audio(self.applicationStubs) # Create dialog to show this instance self.dialog = QtWidgets.QMainWindow() # Start main event loop self.prog = application.mainWindow(self.dialog)
def setup(self, qtbot): # Create dialog to show this instance self.dialog = QtWidgets.QMainWindow() qtbot.add_widget(self.dialog) # Start main event loop self.prog = application.mainWindow(self.dialog) # self.prog.exporter self.file = open('saveFileTest', 'w') self.stubInstance = stubExport()
def setup(self, qtbot): # Create dialog to show this instance self.dialog = QtWidgets.QMainWindow() qtbot.add_widget(self.dialog) # Start main event loop self.prog = application.mainWindow(self.dialog) # Search handler self.tableHandler = application.TableHandler(self.prog) self.signalStubs = SignalStubs() self.results = self.prog.sparql.get_tracklist( 'Mogwai Live at the Forum on 16-10-1999') # Setup a default view in the table self.prog.searchHandler.setup_views(['table'], self.results)
from PyQt5 import QtWidgets import sys import application if __name__ == '__main__': # Create QApplication instance app = QtWidgets.QApplication(sys.argv) # Create dialog to show this instance dialog = QtWidgets.QMainWindow() # Start main event loop prog = application.mainWindow(dialog) # Show the main dialog window to user dialog.show() # On user exit, stop the application sys.exit(app.exec_())