Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'preferably': 0.05; 'subject: + ': 0.07; 'tkinter': 0.07; 'finished.': 0.09; 'pages.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'toolkit': 0.09; 'api': 0.11; 'python': 0.11; 'gui': 0.12; 'windows': 0.15; 'api,': 0.16; 'lightweight.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:gui': 0.16; 'wxpython': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'featured': 0.22; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'bar.': 0.24; 'frameworks': 0.24; 'url:moin': 0.24; 'this:': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'experiences': 0.30; 'mode': 0.30; 'code': 0.31; 'url:wiki': 0.31; '13,': 0.31; 'ctypes': 0.31; 'dialog': 0.31; 'option.': 0.31; 'sep': 0.31; 'url:python': 0.33; 'updated': 0.34; 'info': 0.35; 'but': 0.35; 'version': 0.36; 'really': 0.36; 'doubt': 0.36; 'url:org': 0.36; 'should': 0.36; 'window': 0.38; 'to:addr:python- list': 0.38; 'does': 0.39; '(from': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'easy': 0.60; 'most': 0.60; 'full': 0.61; 'simple': 0.61; 'kind': 0.63; 'finally': 0.65; 'close': 0.67; 'obvious': 0.74; 'lightweight': 0.84; 'nagy': 0.84; 'ocean': 0.84; 'absolutely': 0.87; 'subject:very': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Thomas Heller Subject: Re: very lightweight gui for win32 + python 3.4 Date: Fri, 12 Sep 2014 20:35:37 +0200 References: <541320D4.5030800@shopzeus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: mail.iontof.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1410546893 news.xs4all.nl 2965 [2001:888:2000:d::a6]:34989 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77818 Am 12.09.2014 18:38, schrieb Chris Angelico: > On Sat, Sep 13, 2014 at 2:35 AM, Nagy László Zsolt wrote: >> So I need to create a GUI mode version of my program. That the customer >> should be able to see a progress bar. What kind of GUI toolkit should I use >> for this? I would like this to be lightweight, preferably under 5MB with a >> very easy API for simple things like create a dialog, put some labels and a >> progress bar on it, and finally close the dialog when the program is >> finished. (And of course, needs to work with cx Freeze.) >> >> I do not need a full featured cross platform GUI toolkit. What are my >> options? >> >> I have been looking at this: >> >> https://wiki.python.org/moin/GuiProgramming >> >> The only Windows specific lightweight frameworks are venster and Ocean but >> they have not been updated since ages. I know that I can do this using the >> win32 API, but I don't really want to learn how to build a dialog using >> win32 API calls and then process window message queues.... wxPython and Qt >> are well known but they are not exactly lightweight. > I would recommend to look into Pyglet - it uses the native windows api via ctypes calls (and is cross-platform as well). I have never used it myself, all this info is from the web pages. > There's absolutely no reason to go Windows-specific. Use Tkinter - > it's pretty light-weight. Comes with most Python distros. See how it > goes in terms of code size - if it's unsuitable, then look at others, > but start with the obvious option. Does Tkinter really work well with cx_Freeze? I doubt it (from my experiences with py2exe).