Exemplo n.º 1
0
def main(argv):
    app = QApplication(argv)
    parser = qymain.createOptionParser()
    options, args = parser.parse_args(argv)
    db.connectDatabase(options.filename)

    dlg = LogDialog()
    return dlg.exec_()
Exemplo n.º 2
0
Arquivo: qyok.py Projeto: agateau/qyok
def main(argv):
    app = QApplication(argv)
    parser = qymain.createOptionParser()
    options, args = parser.parse_args(argv)
    db.connectDatabase(options.filename)

    dlg = MainWindow()
    dlg.show()
    return app.exec_()
Exemplo n.º 3
0
def main(argv):
    app = QApplication(argv)
    parser = qymain.createOptionParser()
    options, args = parser.parse_args(argv)
    db.connectDatabase(options.filename)

    dlg = MainWindow()
    dlg.show()
    return app.exec_()
Exemplo n.º 4
0
def main(argv):
    app = QApplication(argv)
    parser = qymain.createOptionParser()
    options, args = parser.parse_args(argv)
    db.connectDatabase(options.filename)

    dlg = AddTaskDialog()
    dlg.setWindowFlags(dlg.windowFlags() | Qt.WindowStaysOnTopHint)

    description = app.clipboard().text(QClipboard.Selection)
    dlg.setInitialDescription(description)
    return dlg.exec_()
Exemplo n.º 5
0
def main(argv):
    app = QApplication(argv)
    parser = qymain.createOptionParser()
    options, args = parser.parse_args(argv)
    db.connectDatabase(options.filename)

    dlg = AddTaskDialog()
    dlg.setWindowFlags(dlg.windowFlags() | Qt.WindowStaysOnTopHint)

    description = app.clipboard().text(QClipboard.Selection)
    dlg.setInitialDescription(description)
    return dlg.exec_()