Selector widget lov problem #259
-
Hi, I am wondering why selector lov={my_list} is not working. I get always a concatenated list items string displayed. For me its only possible to pass values as ";".join(my_list) any suggestions Thanks in advance Alex |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Here is a little code showing how to use a selector: from taipy.gui import Gui
list_of_elements = ['First element', 'Second element', 'Third element']
selected_value = None
md = """
<|{selected_value}|selector|lov={list_of_elements}|>
<|{selected_value}|>
"""
Gui(md).run() Do you get the appropriate result? |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thank you for that fast reply.
I am doing the same things ( take a look at screenshots)
[image001.png]
[image002.png]
[image003.png]
#######
I have also the same behavior with disabling the menu items. I can only pass the string with concatenated values like „menu1;menu2“
[image001.png]
It have tried a list, a tuple a dictionary. But only the concatenated string works for me
(Using tapir Lib V 2.4 and python 3.11.2)
Thanks in advance
A. Ziganow
…___________________________________________________________
[image002.png]
SimplyTest GmbH
Geschäftsführer: Alexander Heimlich, Waldemar Siebert
Sitz der Gesellschaft: Nürnberg
Registergericht: Amtsgericht Nürnberg
Registernummer: HRB 35089
Telefon: +49 (0)911 373 96 700
www.simplytest.de
[image004.png][image006.png]
Am 02.08.2023 um 16:53 schrieb FlorianJacta ***@***.***>:
Here is a little code showing how to use a selector:
from taipy.gui import Gui
list_of_elements = ['First element', 'Second element', 'Third element']
selected_value = None
md = """
<|{selected_value}|selector|lov={list_of_elements}|>
<|{selected_value}|>
"""
Gui(md).run()
Do you get the appropriate result?
[image]<https://user-images.githubusercontent.com/98709993/257853180-e385fc26-2355-4d0e-95bb-2f672843bc16.png>
—
Reply to this email directly, view it on GitHub<#259 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADFR4OUQCJG3R2SODJHZN4LXTJSW3ANCNFSM6AAAAAA3BLENUA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Try to remove the
It should fix your issue. |
Beta Was this translation helpful? Give feedback.
-
Thx, that fixed the problem |
Beta Was this translation helpful? Give feedback.
Try to remove the
f
before the string. See my example above, there are nof
before the string.f"""
->"""
It should fix your issue.