Deprication fix

This commit is contained in:
YourSandwich 2021-05-01 22:24:33 +02:00
parent ac6dc2fcef
commit 79d87a2029
2 changed files with 3 additions and 3 deletions

View File

@ -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]

View File

@ -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())