E-slam commited on
Commit
2a221df
·
verified ·
1 Parent(s): e4f6ea4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -128,7 +128,7 @@ async def main(page: ft.Page):
128
 
129
  async def printer(e, name):
130
  query_feild.value = name
131
- await page.update()
132
 
133
  async def query_feild_changed(e):
134
  datatable_row.visible = False
@@ -148,7 +148,7 @@ async def main(page: ft.Page):
148
  listview.controls = [
149
  list_items.get(n) for n in query_list if str_lower in normalize_arabic(n)
150
  ] if str_lower else []
151
- await page.update()
152
 
153
  async def send_button(e):
154
  global first_run
@@ -192,7 +192,7 @@ async def main(page: ft.Page):
192
  DataCell(Row([Text(f"{txt}...", width=400), IconButton(icon=icons.ARROW_RIGHT_OUTLINED, height=50, on_click=show_book_text)]))
193
  ]))
194
 
195
- await page.update()
196
 
197
  async def book_btn_filter(e):
198
  global book_selected
@@ -207,7 +207,7 @@ async def main(page: ft.Page):
207
  book_btn.bgcolor = colors.CYAN
208
  book_selected = False
209
 
210
- await page.update()
211
 
212
  def show_book_text(e):
213
  pass
 
128
 
129
  async def printer(e, name):
130
  query_feild.value = name
131
+ await page.update_async()
132
 
133
  async def query_feild_changed(e):
134
  datatable_row.visible = False
 
148
  listview.controls = [
149
  list_items.get(n) for n in query_list if str_lower in normalize_arabic(n)
150
  ] if str_lower else []
151
+ await page.update_async()
152
 
153
  async def send_button(e):
154
  global first_run
 
192
  DataCell(Row([Text(f"{txt}...", width=400), IconButton(icon=icons.ARROW_RIGHT_OUTLINED, height=50, on_click=show_book_text)]))
193
  ]))
194
 
195
+ await page.update_async()
196
 
197
  async def book_btn_filter(e):
198
  global book_selected
 
207
  book_btn.bgcolor = colors.CYAN
208
  book_selected = False
209
 
210
+ await page.update_async()
211
 
212
  def show_book_text(e):
213
  pass