die python-Paketnamen haben sich mit 22.04 heftig geändert. Was muss ist für Pakete unter 22.04 installieren, damit ich das Programm zum laufen bekomme mit den "import XY.." ?
Code: Alles auswählen
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from PyQt5 import QtCore, QtGui
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
# you can change settings right here:
frame_width = 13
# R G B
frame_color = QtGui.QColor(0, 100, 0)
# calculates actual size of frame in pixels
frame_size = round(float(frame_width) / 2) * 2
# main window class
class main_window(QMainWindow):
def __init__(self, size = None, parent = None):
[...]
apt-get install libqt4-dev python-qt4 qt4-dev-tools python-qt4-dev pyqt4-dev-tools python3-pyqt4 python3 python3-pyside
Wer kennt sich aus?
Gruß
Eckard