Skip to content

Commit

Permalink
Add Helix Fossil icon for windows and task bar
Browse files Browse the repository at this point in the history
  • Loading branch information
jbvsmo committed Apr 18, 2014
1 parent 09e790e commit ef57303
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Binary file added fossil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
from user import User, PCUser, PersonUser


if 'win' in sys.platform:
# Fix the task bar icon for Windows
import ctypes
ctypes.windll.shell32.\
SetCurrentProcessExplicitAppUserModelID('com.privateTPPsystem')


class ClickLineEdit(QtGui.QLineEdit):
key_dict = {v: k.split('_', 1)[-1] for k, v in
QtCore.Qt.__dict__.items() if k.startswith('Key_')}
Expand All @@ -37,12 +44,18 @@ def event(self, event):
return super().event(event)


def set_fossil(window):
window.setWindowIcon(QtGui.QIcon('fossil.png'))


class Main(object):

def __init__(self):
self.app = QtGui.QApplication(sys.argv)
self.window = QtGui.QMainWindow()
self.cmd_window = QtGui.QMainWindow()
set_fossil(self.window)
set_fossil(self.cmd_window)

self.btn_window = None
self.widget_buttons = []
Expand Down Expand Up @@ -222,6 +235,7 @@ def save_buttons_value():

def set_buttons():
self.btn_window = QtGui.QMainWindow()
set_fossil(self.btn_window)
ui = form_buttons.Ui_MainWindow()
ui.setupUi(self.btn_window)
btns = list(controller.button_hold.items())
Expand Down

0 comments on commit ef57303

Please sign in to comment.