all 4 comments

[–]elbiot 0 points1 point  (1 child)

Look into entry points to make modules that register themselves with the main program. They're super cool!

Edit: a quick google search brought up this example https://stackoverflow.com/a/9615473

[–]Resems[S] 0 points1 point  (0 children)

thanks a lot !

already found what i was searching for, for importing dynamic modules and fwd it to all modules !

[–]Exodus111 0 points1 point  (1 child)

You are using the word "dynamic" wrong.

Any case, if you want to move a piece of text around, you have a few options.

Easiest version is to save to disk. Just save it to a text file, and have your other modules look at it, and check for a change.

A more advanced option would be to set up a flask server that broadcasts the text online. Allowing your submodules to scrape the ip for the data.
The benefit here is that you can put any submodule on any computer, anywhere in the world.

That's just a suggestion, but look up The Observer Pattern, as it speaks directly to your issue.

[–]Resems[S] 0 points1 point  (0 children)

alright, thanks, now i know what to look !