Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'executable': 0.07; 'wrapper': 0.07; 'statements': 0.09; 'importing': 0.15; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'modularity': 0.16; 'namespace.': 0.16; 'need,': 0.16; 'qt,': 0.16; 'wrote:': 0.16; 'app': 0.16; 'debugging': 0.18; 'module,': 0.18; "aren't": 0.22; 'libraries': 0.22; 'am,': 0.23; 'seems': 0.23; 'nearly': 0.23; "haven't": 0.24; 'import': 0.24; 'header:In- Reply-To:1': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'chris': 0.26; 'least': 0.27; 'another.': 0.29; 'objects': 0.29; 'themselves': 0.29; 'there.': 0.30; "i'm": 0.30; 'version,': 0.30; 'though.': 0.33; 'message-id:@gmail.com': 0.34; 'file': 0.34; 'worked': 0.34; 'but': 0.36; 'there': 0.36; 'created': 0.36; 'possible': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'names': 0.38; 'files': 0.38; 'shared': 0.38; 'received:192': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'some': 0.40; 'your': 0.60; 'entire': 0.61; 'charset:windows-1252': 0.62; 'more': 0.63; 'necessarily': 0.63; 'between': 0.65; 'cut': 0.67; 'pyqt.': 0.84; 'total,': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sat, 11 Jul 2015 14:16:14 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: beginners choice: wx or tk? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1436645786 news.xs4all.nl 2959 [2001:888:2000:d::a6]:41697 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93702 On 07/11/2015 11:39 AM, Chris Angelico wrote: >> I'm happy with PyQt. I haven't created standalone executable files with it, though. Do they necessarily have to be large? I would think that well-written import statements would cut down on the file size. Just import the objects you need, rather than the whole namespace. PyQt is even organized in sub-modules, apparently to encourage you to refrain from importing everything. >> > > If there are submodules that you aren't importing, then it's possible > they don't need to be included. But if you just import a few names > from a module, you still need the entire module to be included. It's not the size of the PyQt wrapper files themselves that are big. It's the Qt dlls. Last I worked with Qt, they added nearly 10 MB to an app bundle's size. You will have to ship them with your app one way or another. There is some modularity there. But at the very least you need QtCore and QtGui, which are between 8 and 15 MB total, depending on debugging symbols, qt version, etc. Qt 5 seems to be more modular; there are a lot more individual shared libraries that are smaller.