Skip to content

Commit

Permalink
Merge pull request #157 from rahulp13/master
Browse files Browse the repository at this point in the history
sync splash and app view; revert removal of system tray
  • Loading branch information
rahulp13 authored Aug 8, 2020
2 parents 8255c72 + 64b9e0a commit a61c3ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions src/frontEnd/Application.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import os

if os.name == 'nt': # noqa
if os.name == 'nt': # noqa
from frontEnd import pathmagic # noqa:F401
init_path = ''
else:
Expand Down Expand Up @@ -75,11 +75,9 @@ def __init__(self, *args):
self.showMaximized()
self.setWindowIcon(QtGui.QIcon(init_path + 'images/logo.png'))

# self.systemTrayIcon = QtWidgets.QSystemTrayIcon(self)
# self.systemTrayIcon.setIcon(
# QtGui.QIcon(init_path + 'images/logo.png')
# )
# self.systemTrayIcon.setVisible(True)
self.systemTrayIcon = QtWidgets.QSystemTrayIcon(self)
self.systemTrayIcon.setIcon(QtGui.QIcon(init_path + 'images/logo.png'))
self.systemTrayIcon.setVisible(True)

def initToolBar(self):
"""
Expand Down Expand Up @@ -804,8 +802,8 @@ def __init__(self, *args):

# Adding to main Layout
self.mainLayout.addWidget(self.leftSplit)
self.leftSplit.setSizes([self.width() // 4.5, self.height()])
self.middleSplit.setSizes([self.width(), self.height() // 2])
self.leftSplit.setSizes([int(self.width() / 4.5), self.height()])
self.middleSplit.setSizes([self.width(), int(self.height() / 2)])
self.setLayout(self.mainLayout)


Expand Down
4 changes: 2 additions & 2 deletions src/frontEnd/Workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def defaultWorkspace(self):
parent, children
)

var_appView.show()
time.sleep(1.5)
var_appView.splash.close()
var_appView.show()

def close(self, *args, **kwargs):
self.window_open_close = 1
Expand Down Expand Up @@ -166,9 +166,9 @@ def createWorkspace(self):
parent, children
)

var_appView.show()
time.sleep(1.5)
var_appView.splash.close()
var_appView.show()

def browseLocation(self):
print("Function : Browse Location")
Expand Down

0 comments on commit a61c3ed

Please sign in to comment.