mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
fix: extreme.py init_plot_background error handling
This commit is contained in:
@ -156,7 +156,9 @@ class PlotApp(QWidget):
|
|||||||
pg.setConfigOption("background", "w")
|
pg.setConfigOption("background", "w")
|
||||||
pg.setConfigOption("foreground", "k")
|
pg.setConfigOption("foreground", "k")
|
||||||
else:
|
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:
|
def init_ui(self, num_columns: int = 3) -> None:
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user