Re: Initializing the GUI from a different thread

Michael Behrisch <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
Hi,

Am 01.03.22 um 21:29 schrieb [email protected]:
> The core python engine would likely be happy in its own thread, as long
> as the two don't fight over the same resources your odds are pretty good.

the point is not so much about the interactive python interpreter but 
about small scripts where people do something like (pseudo code):

simulation.start()
while not simulation.ended():
     simulation.step()
     print(simulation.getVehicle("ego"))

I think we could move this to a separate thread but this would force 
people to do something like

def run():
     while not simulation.ended():
         simulation.step()
         print(simulation.getVehicle("ego"))

simulation.start(run)

which means they have to rewrite all their existing scripts just for 
using the GUI

Best regards,
Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.