Esempio n. 1
0
def cola_classic(parent=None, update=True):
    """Launch a new cola classic session."""
    view = widget(parent=parent, update=update)
    if not parent:
        qtutils.center_on_screen(view)
    view.show()
    return view
Esempio n. 2
0
def run_command(parent, title, command):
    """Show a command widget """

    view = GitCommandWidget(parent)
    view.setWindowModality(QtCore.Qt.ApplicationModal)
    view.set_command(command)
    view.setWindowTitle(title)
    if not parent:
        qtutils.center_on_screen(view)
    view.run()
    view.show()
    status = view.exec_()
    return (view.exitstatus, view.out, view.err)