1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-08 09:47:48 +01:00

fix: add max number of columns according to the number of plots

This commit is contained in:
wyzula-jan
2023-09-01 09:24:36 +02:00
parent 583e643dac
commit fbd71c1313

View File

@@ -76,6 +76,7 @@ class PlotApp(QWidget):
# Initialize the UI
self.init_ui(self.plot_settings["num_columns"])
self.spinBox_N_columns.setValue(self.plot_settings["num_columns"])
self.spinBox_N_columns.setMaximum(len(self.plot_data))
self.splitter.setSizes([400, 100])
# Connect the update signal to the update plot method
@@ -373,6 +374,7 @@ if __name__ == "__main__":
plot_settings = config.get("plot_settings", {})
plot_data = config.get("plot_data", {})
except FileNotFoundError:
print(f"The file {args.config} was not found.")
exit(1)