Advertisement
Guest User

Untitled

a guest
Sep 28th, 2023
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.59 KB | None | 0 0
  1. MAIN_GUI = ft.Container(
  2.     margin=ft.margin.only(bottom=40),
  3.     expand=True,
  4.     content=ft.Row([
  5.         ft.Card(
  6.             elevation=30,
  7.             expand=4,
  8.             content=ft.Container(
  9.                 content=ft.Column([
  10.                     ft.Text("LEFT SIDE, 1st row", size=30, weight=ft.FontWeight.BOLD),
  11.                     ft.Text("LEFT SIDE 2nd row", size=30, weight=ft.FontWeight.NORMAL)
  12.                 ]),
  13.                 border_radius=ft.border_radius.all(20),
  14.                 bgcolor=ft.colors.WHITE24,
  15.                 padding=45,
  16.             )
  17.         ),
  18.         ft.Tabs(
  19.             selected_index=0,
  20.             animation_duration=300,
  21.             expand=3,
  22.             tabs=[
  23.                 ft.Tab(
  24.                     text="Tab 1",
  25.                     icon=ft.icons.SEARCH,
  26.                     content=ft.Container(
  27.                         content=ft.Card(
  28.                             elevation=30,
  29.                             content=ft.Container(
  30.                                 content=ft.Text("Amazing TAB 1 content", size=50, weight=ft.FontWeight.BOLD),
  31.                                 border_radius=ft.border_radius.all(20),
  32.                                 bgcolor=ft.colors.WHITE24,
  33.                                 padding=45,
  34.                             )
  35.                         )
  36.                     ),
  37.                 ),
  38.                 ft.Tab(
  39.                     text="Tab 2",
  40.                     icon=ft.icons.SETTINGS,
  41.                     content=ft.Text("Amazing TAB 2 content"),
  42.                 ),
  43.             ],
  44.         )
  45.     ])
  46. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement