Well i am new here so please ignore some mistakes taken by me for the description .
ok, I am having a form with 10 textboxes and 5 dropdowns and 2 date and time . So i wanted to start filling all the fields(textboxes,dropdowns and dates ) at once and after completing all fills i have to click a submit button.
I want to do something like the asyncio works.
import asyncio
import time
async def say_after(delay, what):
await asyncio.sleep(delay)
print(what)
async def main():
task1 = asyncio.create_task(
say_after(5, 'hello'))
task2 = asyncio.create_task(
say_after(7, 'world'))
print(f"started at {time.strftime('%X')}")
# Wait until both tasks are completed (should take
# around 2 seconds.)
await task1
await task2
print(f"finished at {time.strftime('%X')}")
asyncio.run(main())
I already tried the method of threading like :
th1 = threading.Thread(target=__func_of_fill_1st_textbox__)
th2 = threading.Thread(target=__func_of_fill_2nd_textbox__)
th3 = threading.Thread(target=__func_of_fill_3rd_textbox__)
th4 = threading.Thread(target=__func_of_fill_4th_textbox__)
th1.start()
th2.start()
th3.start()
th4.start()
But sadly all are not executing at same time like asyncio.
Please Ignore if some mistakes taken by me.
Understandable answers appriciated .