whitecat29 commited on
Commit
c8b1060
·
1 Parent(s): c20ffa8

update application file

Browse files
Files changed (1) hide show
  1. app.py +18 -8
app.py CHANGED
@@ -8,14 +8,24 @@ def button_click():
8
  with gr.Blocks() as demo:
9
  gr.Markdown("This interface showcases a button with a tooltip.")
10
  with gr.Row():
11
- inp = ButtonTip(
12
- tooltip="Tooltip Text",
13
- tooltip_color="white", # Custom color
14
- tooltip_background_color="red",
15
- x=120, # No horizontal offset
16
- y=-20, # Above the button
17
- value="Top Button"
18
- )
 
 
 
 
 
 
 
 
 
 
19
  out = "Hello World"
20
 
21
  if __name__ == "__main__":
 
8
  with gr.Blocks() as demo:
9
  gr.Markdown("This interface showcases a button with a tooltip.")
10
  with gr.Row():
11
+ inp = [
12
+ ButtonTip(
13
+ tooltip="Tooltip Text",
14
+ tooltip_color="white", # Custom color
15
+ tooltip_background_color="red",
16
+ x=120, # No horizontal offset
17
+ y=-20, # Above the button
18
+ value="Left Button"
19
+ ),
20
+ ButtonTip(
21
+ tooltip="Tooltip Text",
22
+ tooltip_color="white", # Custom color
23
+ tooltip_background_color="blue",
24
+ x=-90, # No horizontal offset
25
+ y=-20, # Above the button
26
+ value="Right Button"
27
+ )
28
+ ]
29
  out = "Hello World"
30
 
31
  if __name__ == "__main__":