Skip to content

Commit

Permalink
activating workflows v5
Browse files Browse the repository at this point in the history
  • Loading branch information
cudmore committed Jun 26, 2024
1 parent 8b04950 commit 8f79e4e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion pymapmanager/interface2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

from .preferences import Preferences

from .appDisplayOptions import AppDisplayOptions
from .appDisplayOptions import AppDisplayOptions

from .pyMapManagerApp2 import myApp
6 changes: 4 additions & 2 deletions pymapmanager/interface2/pyMapManagerApp2.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,13 @@ def loadPlugins(verbose=False, pluginType='stack') -> dict:

return pluginDict

class PyMapManagerApp(QtWidgets.QApplication):
class myApp(QtWidgets.QApplication):
def __init__(self, argv=[], deferFirstWindow=False):
super().__init__(argv)

return
class PyMapManagerApp(QtWidgets.QApplication):
def __init__(self, argv=[], deferFirstWindow=False):
super().__init__(argv)

self._config = pymapmanager.interface2.Preferences(self)
# util class to save/load app preferences including recent paths
Expand Down
6 changes: 4 additions & 2 deletions tests/interface/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

import mapmanagercore.data

from pymapmanager.interface2 import PyMapManagerApp
from pymapmanager.interface2 import myApp
# from pymapmanager.interface2 import PyMapManagerApp
from pymapmanager.interface2.stackWidgets import stackWidget2

from pymapmanager._logger import logger

# this makes qapp be our PyMapManagerApp, it is derived from QApplication
@pytest.fixture(scope="session")
def qapp_cls():
return PyMapManagerApp
# return PyMapManagerApp
return myApp

def test_app(qtbot, qapp):
logger.info(f'app:{qapp}')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stack.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import pymapmanager as pmm

def test_init_stack():
def _test_init_stack():
return

stackPath = '../PyMapManager-Data/one-timepoint/rr30a_s0_ch2.tif'
Expand Down

0 comments on commit 8f79e4e

Please sign in to comment.