Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multi-processing
#1
I've created a GUI with tkinter where you can enter 5 inputs and send them whenever you want by pressing a button. Now I want to give a limit of time (like 1 minute) to enter these 5 inputs so I have to create a timer and at the end of the cooldown the inputs will be sent automatically. I'm not sure how can I do this: I think I have to create something like multi-threading or multi-processing but anyway I don't have any idea of how they work. Can someone give me some tips or direct me to a guide? Thanks.
Reply
#2
Use after() to call a function which sends the inputs and then will quit tkinter (or destroy the Frame containing the Entry widgets) when the allotted time has passed. http://effbot.org/tkinterbook/widget.htm
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Updating variables in Multi-processing WiPi 11 10,611 Feb-13-2021, 10:58 AM
Last Post: WiPi
  Multi-processing to communicate with microcontrollers Khoily 1 2,476 Mar-01-2019, 08:57 PM
Last Post: DeaD_EyE
  Multi-processing - problem with running multiple *.py files at the same time Antonio 5 3,746 Sep-12-2018, 01:08 PM
Last Post: volcano63
  How does multi-processing in python increase the execution time? kadsank 0 2,295 Jan-15-2018, 01:15 PM
Last Post: kadsank

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020