@@ -68,7 +68,8 @@ def __init__(self, type="main_page", path="", title="", main=False):
6868 # runtime.collect_cls(self)
6969
7070 def dynamic_widget_id (self ):
71- return str (time .time_ns ())
71+ # return str(time.time_ns())
72+ return str (uuid .uuid4 ())
7273
7374 def button (
7475 self ,
@@ -394,8 +395,6 @@ def list(
394395 data : Iterable = [],
395396 on_click : Optional [Callable ] = None ,
396397 id : Optional [str ] = None ,
397- slot_start : Optional [str ] = None ,
398- slot_end : Optional [str ] = None ,
399398 ):
400399 """Display list element
401400
@@ -411,16 +410,11 @@ def list(
411410 id : str
412411 An optional string or integer to use as the unique key for the element.
413412
414- slot_start : str
415- data top be diplay at the beginning of the list
416-
417- slot_end : str
418- data to be dipalay at the end of the list
419-
420413 Examples
421414 --------
422415
423- >>> ds.list(['python', 'javascript', 'java', 'c++', 'pascal'])
416+ >>> selected_lan = ds.list(['python', 'javascript', 'java', 'c++', 'pascal'])
417+ >>> ds.write('your favourite language: ' + selected_lan)
424418
425419 """
426420 block = {
@@ -429,8 +423,6 @@ def list(
429423 "prop" : {
430424 "data" : data ,
431425 "value" : "" ,
432- "slot_start" : slot_start ,
433- "slot_end" : slot_end ,
434426 },
435427 }
436428 try :
@@ -448,6 +440,8 @@ def list(
448440 if not self .replace_block (id , block ):
449441 self .append_block (block )
450442
443+ return "none"
444+
451445 def menu (
452446 self ,
453447 data : Iterable ,
0 commit comments