Deprication fix
This commit is contained in:
@@ -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]
|
||||
|
||||
4
main.py
4
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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user