Does using, for example, i开发者_运维百科mport TextCrtl from wx make the application smaller when built as a stand alone app?
Whether you import a module, or import something from a module, the entire module is always executed. The only difference is what is added to the namespace.
Here's a nice SO answer on this subject: Does "from-import" exec the whole module?
So the answer is no, the entire module will always be included.
精彩评论