Skip to content

Commit

Permalink
Fix gui width (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumjot authored Jun 7, 2023
1 parent 802a9dc commit a628647
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/napari_arboretum/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from napari_arboretum.visualisation.matplotlib_plotter import MPLPropertyPlotter
from napari_arboretum.visualisation.vispy_plotter import VisPyPlotter

GUI_MAXIMUM_WIDTH = 400
GUI_MAXIMUM_WIDTH = 500


class Arboretum(QWidget, TrackPropertyMixin):
Expand All @@ -31,6 +31,7 @@ def __init__(self, viewer: napari.Viewer = None, parent=None):
self.title = QLabel()
self.plotter: TreePlotterQWidgetBase = VisPyPlotter()
self.property_plotter: PropertyPlotterBase = MPLPropertyPlotter(viewer)
self.setMaximumWidth(GUI_MAXIMUM_WIDTH)

# Set plugin layout
layout = QGridLayout()
Expand All @@ -51,7 +52,7 @@ def __init__(self, viewer: napari.Viewer = None, parent=None):
row = 3
layout.addWidget(self.property_plotter.get_qwidget(), row, col)
# Make the tree plot a bigger than the property plot
for row, stretch in zip([1, 2], [2, 1]):
for row, stretch in zip([1, 2, 3], [4, 1, 2]):
layout.setRowStretch(row, stretch)
self.setLayout(layout)

Expand Down

0 comments on commit a628647

Please sign in to comment.