0

I'm following the tutorial: A full Python + Kirigami application to learn how to build Python applications using PySide6 and Kirigami for KDE, under Arch Linux and Fedora.

This is my script:

import QtQuick import QtQuick.Layouts import QtQuick.Controls as Controls import org.kde.kirigami as Kirigami Kirigami.ApplicationWindow { id: root title: qsTr("Simple Markdown viewer") minimumWidth: Kirigami.Units.gridUnit * 20 minimumHeight: Kirigami.Units.gridUnit * 20 width: minimumWidth height: minimumHeight pageStack.initialPage: initPage Component { id: initPage Kirigami.Page { title: qsTr("Markdown Viewer") ColumnLayout { anchors { top: parent.top left: parent.left right: parent.right } Controls.TextArea { id: sourceArea placeholderText: qsTr("Write some Markdown code here") wrapMode: Text.WrapAnywhere Layout.fillWidth: true Layout.minimumHeight: Kirigami.Units.gridUnit * 5 } RowLayout { Layout.fillWidth: true Controls.Button { text: qsTr("Format") onClicked: formattedText.text = sourceArea.text } Controls.Button { text: qsTr("Clear") onClicked: { sourceArea.text = "" formattedText.text = "" } } } Text { id: formattedText textFormat: Text.RichText wrapMode: Text.WordWrap text: sourceArea.text Layout.fillWidth: true Layout.minimumHeight: Kirigami.Units.gridUnit * 5 } } } } } 

I run it with:

python3 src/__main__.py 

But I get this error:

./src/qml/main.qml:4:1: module "org.kde.kirigami" is not installed ./src/qml/main.qml: module "org.kde.desktop" is not installed 

I can't figure out how to fix the error since Kirigami is already installed on my system.

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.