Deprication fix
This commit is contained in:
parent
ac6dc2fcef
commit
79d87a2029
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user