mirror of
https://github.com/seuyh/stellaris-dlc-unlocker.git
synced 2026-06-12 11:01:25 -07:00
resolution fix
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
from PyQt5.QtCore import Qt
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
from UI_logic.MainWindow import MainWindow
|
||||
import sys
|
||||
if __name__ == "__main__":
|
||||
if hasattr(Qt, 'AA_EnableHighDpiScaling'):
|
||||
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True)
|
||||
if hasattr(Qt, 'AA_UseHighDpiPixmaps'):
|
||||
QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps, True)
|
||||
if __name__ == '__main__':
|
||||
app = QApplication(sys.argv)
|
||||
print(f"Using AA_EnableHighDpiScaling > {QApplication.testAttribute(Qt.AA_EnableHighDpiScaling)}")
|
||||
print(f"Using AA_UseHighDpiPixmaps > {QApplication.testAttribute(Qt.AA_UseHighDpiPixmaps)}")
|
||||
main_window = MainWindow()
|
||||
main_window.show()
|
||||
app.exec_()
|
||||
app.exec_()
|
||||
|
||||
Reference in New Issue
Block a user