def __init__(self, parent=None): super(XEmbedCommandWidget, self).__init__(parent) self.error.connect(self.__onError) self.__process = process = QtCore.QProcess(self) self.resetCommand() self.resetAutoRestart() self.resetWinIdParam() self.resetExtraParams()
def qtdesigner_start(args, env=None): # Start Designer. designer_bin = get_qtdesigner_bin() designer = QtCore.QProcess() designer.setProcessChannelMode(QtCore.QProcess.ForwardedChannels) designer.setEnvironment(env) designer.start(designer_bin, args) designer.waitForFinished(-1) return designer.exitCode()
def __init__(self, parent=None): super(XCommandWidget, self).__init__(parent) self.__process = QtCore.QProcess(self) self.__x11_widget = x11_widget = QtGui.QX11EmbedContainer(self) layout = QtGui.QVBoxLayout(self) layout.setMargin(0) layout.setSpacing(0) layout.addWidget(x11_widget) x11_widget.error.connect(self.__onError) self.resetCommand() self.resetAutoRestart() self.resetWinIdParam() self.resetExtraParams()