From 965d6e8a4c7685a7b6d9fd1b53cec3609f0821e3 Mon Sep 17 00:00:00 2001 From: HazemMeqdad <66125469+HazemMeqdad@users.noreply.github.com> Date: Sat, 22 Jan 2022 12:31:26 +0200 Subject: [PATCH] Fix error: cannot be converted to 'PyString' (#974) * Fix error: cannot be converted to 'PyString' * Just update to fix TypeError 'PyString' Co-authored-by: davfsa Co-authored-by: HazemMeqdad Co-authored-by: davfsa --- examples/simple_dashboard/simple_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple_dashboard/simple_dashboard.py b/examples/simple_dashboard/simple_dashboard.py index b1a144fd69..994c84f012 100644 --- a/examples/simple_dashboard/simple_dashboard.py +++ b/examples/simple_dashboard/simple_dashboard.py @@ -58,7 +58,7 @@ def __init__(self, **kwargs: Any) -> None: bot = Bot(token=os.environ["BOT_TOKEN"]) -values = list(range(0, 256 + 1, 32)) +values = [str(i) for i in range(0, 256 + 1, 32)] selector = rr_prime.Selector(f"{PACKAGE}.{DASHBOARD}.{GROUP_CONFIG}.Selector", label="Choose!", options=values) slider = rr_prime.Slider(