Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjin72 committed May 8, 2023
1 parent e949b9d commit fbd4425
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions view.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import sys

from PySide2.QtWidgets import QApplication, QWidget, QDesktopWidget, \
from PySide2.QtWidgets import QApplication, QWidget, \
QHBoxLayout, QVBoxLayout, QComboBox, QLineEdit, QPushButton, QMessageBox
from PySide2 import QtGui


class AssetUploaderView(QWidget):
Expand Down Expand Up @@ -51,7 +52,7 @@ def setup_ui(self):

def center(self):
fg = self.frameGeometry()
dw = QDesktopWidget().availableGeometry().center()
dw = QtGui.QGuiApplication.primaryScreen().availableGeometry().center()
fg.moveCenter(dw)
self.move(fg.topLeft())

Expand Down

0 comments on commit fbd4425

Please sign in to comment.