0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

fix: extreme.py init_plot_background error handling

This commit is contained in:
wyzula-jan
2023-10-03 10:20:35 +02:00
parent 69aaea24f9
commit dafb6fae7a

View File

@ -156,7 +156,9 @@ class PlotApp(QWidget):
pg.setConfigOption("background", "w")
pg.setConfigOption("foreground", "k")
else:
print(f"Warning: Unknown background color {background_color}. Using default settings.")
raise ValueError(
f"Invalid background color {background_color}. Allowed values are 'white' or 'black'."
)
def init_ui(self, num_columns: int = 3) -> None:
"""