From 3d99a0e84298cececc3291133b3b192bc2b88b04 Mon Sep 17 00:00:00 2001 From: Ishan Kamboj Date: Mon, 25 Mar 2024 23:17:57 +0530 Subject: [PATCH] Warning added if tab_bar_pos is not top/bottom --- fury/ui/containers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fury/ui/containers.py b/fury/ui/containers.py index 962fc69c0..e28399cd9 100644 --- a/fury/ui/containers.py +++ b/fury/ui/containers.py @@ -18,7 +18,7 @@ ) from fury.ui.core import UI, Rectangle2D, TextBlock2D from fury.utils import rotate, set_input - +from warnings import warn class Panel2D(UI): """A 2D UI Panel. @@ -741,7 +741,7 @@ def update_tabs(self): """Update position, size and callbacks for tab panels.""" self.tab_panel_size = (self.size[0] // self.nb_tabs, int(0.1 * self.size[1])) if self.tab_bar_pos.lower() not in ['top', 'bottom']: - print("WARNING: tab_bar_pos can only have value top/bottom") + warn("tab_bar_pos can only have value top/bottom") self.tab_bar_pos = "top" if self.tab_bar_pos.lower() == "top":