Different scripts in python

How can I make my code small? think in one script (main menu) calling different scripts according to selection

What code are you talking about?

1 Like

You can make your code smaller by using modular programming. This means breaking down your code into different functions or scripts that can be called upon when needed. This allows for better organization of code and also helps reduce the size of the code. You can also use variables and other techniques to reduce the amount of code needed to accomplish a task.

the problem is I don’t know how to do it from tkinter.
I’ve tried several ways but do not work

thanks for your answer.
how an I send you the piece of code?

To enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

I just made great advance, I could call an external module from my menu but still have some problems returning to the main window