mirror of
https://github.com/vale981/rmview
synced 2025-03-05 17:21:39 -05:00
Executing app from init of app is ugly
This commit is contained in:
parent
cdd993ff8a
commit
d2e2921a78
1 changed files with 3 additions and 4 deletions
|
@ -93,9 +93,6 @@ class rMViewApp(QApplication):
|
||||||
self.aboutToQuit.connect(self.joinWorkers)
|
self.aboutToQuit.connect(self.joinWorkers)
|
||||||
self.requestConnect()
|
self.requestConnect()
|
||||||
|
|
||||||
ecode = self.exec_()
|
|
||||||
print('\nBye!')
|
|
||||||
sys.exit(ecode)
|
|
||||||
|
|
||||||
def autoResize(self, ratio):
|
def autoResize(self, ratio):
|
||||||
dg = self.desktop().availableGeometry(self.viewer)
|
dg = self.desktop().availableGeometry(self.viewer)
|
||||||
|
@ -212,4 +209,6 @@ class rMViewApp(QApplication):
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
log.setLevel(logging.INFO)
|
log.setLevel(logging.INFO)
|
||||||
QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
|
QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
|
||||||
rMViewApp(sys.argv)
|
ecode = rMViewApp(sys.argv).exec_()
|
||||||
|
print('\nBye!')
|
||||||
|
sys.exit(ecode)
|
||||||
|
|
Loading…
Add table
Reference in a new issue