icon cleanup
@ -3,12 +3,22 @@ import sys
|
|||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
from PyQt5.QtCore import QSettings
|
from PyQt5.QtCore import QSettings
|
||||||
from blipblop.ui.mainwindow import BlipBlop
|
from blipblop.ui.mainwindow import BlipBlop
|
||||||
|
import blipblop.constants as cnst
|
||||||
|
|
||||||
|
try:
|
||||||
|
# Include in try/except block if you're also targeting Mac/Linux
|
||||||
|
from PyQt5.QtWinExtras import QtWin
|
||||||
|
myappid = 'neuroetho.uni-tuebingen.de.blipblop.0.1'
|
||||||
|
QtWin.setCurrentProcessExplicitAppUserModelID(myappid)
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
app.setApplicationName("blipblop")
|
app.setApplicationName("blipblop")
|
||||||
app.setApplicationVersion("0.1")
|
app.setApplicationVersion("0.1")
|
||||||
app.setOrganizationDomain("neuroetho.uni-tuebingen.de")
|
app.setOrganizationDomain("neuroetho.uni-tuebingen.de")
|
||||||
|
app.setWindowIcon(cnst.get_icon("blipblop_logo.png"))
|
||||||
settings = QSettings()
|
settings = QSettings()
|
||||||
width = settings.value("app/width", 1024)
|
width = settings.value("app/width", 1024)
|
||||||
height = settings.value("app/height", 768)
|
height = settings.value("app/height", 768)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import sys
|
|
||||||
from PyQt5.QtWidgets import QWidget, QMainWindow, QMenuBar, QToolBar, QAction, QStatusBar, QSizePolicy
|
from PyQt5.QtWidgets import QWidget, QMainWindow, QMenuBar, QToolBar, QAction, QStatusBar, QSizePolicy
|
||||||
from PyQt5.QtGui import QKeySequence
|
from PyQt5.QtGui import QIcon, QKeySequence
|
||||||
from PyQt5.QtCore import QSize, Qt
|
from PyQt5.QtCore import QSize, Qt
|
||||||
|
|
||||||
|
import resources as res
|
||||||
import blipblop.constants as cnst
|
import blipblop.constants as cnst
|
||||||
from blipblop.ui.help import HelpDialog
|
from blipblop.ui.help import HelpDialog
|
||||||
from blipblop.ui.about import AboutDialog
|
from blipblop.ui.about import AboutDialog
|
||||||
@ -52,7 +52,8 @@ class BlipBlop(QMainWindow):
|
|||||||
self._help_action.setEnabled(True)
|
self._help_action.setEnabled(True)
|
||||||
self._help_action.triggered.connect(self.on_help)
|
self._help_action.triggered.connect(self.on_help)
|
||||||
|
|
||||||
self._visual_task_action = QAction(cnst.get_icon("visual_task"), "visual")
|
# self._visual_task_action = QAction(cnst.get_icon("visual_task"), "visual")
|
||||||
|
self._visual_task_action = QAction(QIcon(":/icons/visual_task"), "visual")
|
||||||
self._visual_task_action.setStatusTip("Start measuring visual reaction times")
|
self._visual_task_action.setStatusTip("Start measuring visual reaction times")
|
||||||
self._visual_task_action.setShortcut(QKeySequence("Ctrl+1"))
|
self._visual_task_action.setShortcut(QKeySequence("Ctrl+1"))
|
||||||
self._visual_task_action.setEnabled(True)
|
self._visual_task_action.setEnabled(True)
|
||||||
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1007 B |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 61 KiB |
BIN
icons/quit.png
Before Width: | Height: | Size: 1.3 KiB |