1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#include "pip3dialog.h"
6
7#include <QDebug>
8
9Pip3Dialog::Pip3Dialog(QWidget *parent, Qt::WindowFlags f)
10 : ProcessDialog (parent, f)
11{
12 setWindowTitle("pip3 execute");
13 process.setProgram("pip3");
14}
15
16void Pip3Dialog::install(const QString &packageName)
17{
18 process.setArguments({"install", packageName});
19}
20
21void Pip3Dialog::uninstall(const QString &packageName)
22{
23 process.setArguments({"uninstall", packageName});
24}
25
26void Pip3Dialog::doShowStdErr(const QByteArray &array)
27{
28 qInfo() << array;
29}
30