Skip to content

Commit d9844ad

Browse files
author
LAKESIDE\LindaT18
committed
moved pg.setConfigOption to init functions
1 parent c196dda commit d9844ad

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

PythonGUI_apps/FLIM_analysis/FLIM_plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
pg.mkQApp()
2121
pg.setConfigOption('background', 'w')
22-
pg.setConfigOption('imageAxisOrder', 'row-major')
22+
2323

2424
base_path = Path(__file__).parent
2525
file_path = (base_path / "flim_plot_gui.ui").resolve()
@@ -37,6 +37,7 @@ class MainWindow(TemplateBaseClass):
3737
hist_data_signal = QtCore.pyqtSignal()
3838

3939
def __init__(self):
40+
pg.setConfigOption('imageAxisOrder', 'row-major')
4041
super(TemplateBaseClass, self).__init__()
4142

4243
# Create the main window

PythonGUI_apps/H5_Pkl/h5_view_and_plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
from .h5_tree import H5TreeSearchView
1414
from .pkl_tree import PklTreeSearchView
1515

16-
pg.setConfigOption('imageAxisOrder', 'row-major')
16+
1717

1818
class H5ViewPlot(BaseApp):
1919

2020
name = "h5_view_plot"
2121

2222
def __init__(self, argv):
23+
pg.setConfigOption('imageAxisOrder', 'row-major')
2324
BaseApp.__init__(self, argv)
2425
self.setup()
2526
parser = argparse.ArgumentParser()

PythonGUI_apps/Image_analysis/Image_analysis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# local modules
1111

1212
pg.mkQApp()
13-
pg.setConfigOption('imageAxisOrder', 'col-major')
13+
1414

1515
base_path = Path(__file__).parent
1616
file_path = (base_path / "image_analysis_gui.ui").resolve()
@@ -26,6 +26,7 @@ def updateDelay(scale, time):
2626
class MainWindow(TemplateBaseClass):
2727

2828
def __init__(self):
29+
pg.setConfigOption('imageAxisOrder', 'col-major')
2930
super(TemplateBaseClass, self).__init__()
3031

3132
# Create the main window

PythonGUI_apps/Spectrum_analysis/Spectra_plot_fit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
pg.mkQApp()
3737
pg.setConfigOption('background', 'w')
38-
pg.setConfigOption('imageAxisOrder', 'row-major')
38+
3939

4040
base_path = Path(__file__).parent
4141
file_path = (base_path / "Spectra_plot_fit_gui.ui").resolve()
@@ -51,6 +51,7 @@ def updateDelay(scale, time):
5151
class MainWindow(TemplateBaseClass):
5252

5353
def __init__(self):
54+
pg.setConfigOption('imageAxisOrder', 'row-major')
5455
super(TemplateBaseClass, self).__init__()
5556

5657
# Create the main window

0 commit comments

Comments
 (0)