Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from bash-c/patch-2
Browse files Browse the repository at this point in the history
Impove resolution on HiDPI
  • Loading branch information
jiangxufeng authored Oct 4, 2019
2 parents 047dde6 + dea0a22 commit ea642ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions v2rayL-GUI/v2rayLui.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
QMessageBox,
QFileDialog,
QSystemTrayIcon,
qApp
qApp,
QMainWindow
)

+from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPixmap
from v2rayL_api import V2rayL, MyException
import pyzbar.pyzbar as pyzbar
Expand Down Expand Up @@ -482,6 +483,7 @@ def output_conf_by_qr(self, region):

if __name__ == "__main__":
import sys
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
app = QApplication(sys.argv)
myWin = MyMainWindow()
# 显示在屏幕上
Expand Down

0 comments on commit ea642ec

Please sign in to comment.