From 79d87a20296c50baaea957c5ef9772fc3634c5ff Mon Sep 17 00:00:00 2001 From: YourSandwich Date: Sat, 1 May 2021 22:24:33 +0200 Subject: [PATCH] Deprication fix --- getKernelInfo.py | 2 +- main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/getKernelInfo.py b/getKernelInfo.py index 28fe60e..2cccaa1 100644 --- a/getKernelInfo.py +++ b/getKernelInfo.py @@ -7,7 +7,7 @@ from bs4 import BeautifulSoup theurl = "https://archive.archlinux.org/packages/l/linux/" thepage = urllib.request.urlopen(theurl) -soup = BeautifulSoup(thepage) +soup = BeautifulSoup(thepage, features="lxml") project_href = [i['href'] for i in soup.find_all('a', href=True)] del project_href[0] diff --git a/main.py b/main.py index 4744c5d..d0e8ba0 100644 --- a/main.py +++ b/main.py @@ -25,7 +25,7 @@ class Window(QWidget): def center(self): qRect = self.frameGeometry() - centerPoint = QDesktopWidget().availableGeometry().center() + centerPoint = QGuiApplication.primaryScreen().availableGeometry().center() qRect.moveCenter(centerPoint) self.move(qRect.topLeft()) @@ -105,7 +105,7 @@ class InstallProcess(QWidget): def center(self): qRect = self.frameGeometry() - centerPoint = QDesktopWidget().availableGeometry().center() + centerPoint = QGuiApplication.primaryScreen().availableGeometry().center() qRect.moveCenter(centerPoint) self.move(qRect.topLeft())