コード例 #1
0
    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)
コード例 #2
0
    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)
コード例 #3
0
    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)
コード例 #4
0
    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()
コード例 #5
0
    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)
コード例 #6
0
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_())