Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.freenet.ag!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Dietmar Schwertberger Newsgroups: comp.lang.python Subject: Re: Everything good about Python except GUI IDE? Date: Sat, 27 Feb 2016 19:51:45 +0100 Lines: 41 Message-ID: References: <64a6599c-fae1-469d-bcee-875165b3cc7d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de YEJYRa2NAOQXAx30ltbHfAO7zIrop775hYgxLIdj8l0Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'debug': 0.04; 'subject:Python': 0.05; 'wrapper': 0.07; 'components.': 0.09; 'debugger': 0.09; 'python': 0.10; 'file,': 0.15; 'interpreter': 0.15; '"classic"': 0.16; '"getting': 0.16; '(well,': 0.16; '.py': 0.16; 'already,': 0.16; 'beginning.': 0.16; 'c++.': 0.16; 'dependent.': 0.16; 'learnt': 0.16; 'non-trivial': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:GUI': 0.16; 'vb.net': 0.16; 'wrote:': 0.16; 'beginner': 0.18; 'debugging': 0.18; 'gui': 0.18; 'complete,': 0.22; 'converted': 0.22; 'file.': 0.22; 'programming': 0.22; 'code,': 0.23; '(or': 0.23; 'properties': 0.24; 'header:In-Reply-To:1': 0.24; 'header :User-Agent:1': 0.26; 'example': 0.26; 'wonder': 0.27; 'looks': 0.29; 'received:192.168.10': 0.29; "i'm": 0.30; 'classes': 0.30; 'code': 0.30; 'e.g.': 0.30; 'probably': 0.31; 'option': 0.31; 'especially': 0.32; 'included': 0.32; 'compiled': 0.32; 'maybe': 0.33; 'run': 0.33; 'source': 0.33; 'impression': 0.33; 'file': 0.34; 'skip:d 20': 0.34; 'designer': 0.35; 'easiest': 0.35; 'quite': 0.35; 'but': 0.36; 'should': 0.36; 'created': 0.36; 'flow': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'starting': 0.37; 'version': 0.38; 'enough': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'called': 0.40; 'email addr:gmail.com': 0.62; 'show': 0.62; 'charset:windows-1252': 0.62; 'information': 0.63; 'soon.': 0.73; 'subject:good': 0.84; 'wxpython.': 0.84; 'received:192.168.0.5': 0.91 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: X-Virus-Scanned: clamav-milter 0.98.7 at mxout1 X-Virus-Status: Clean DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailerdienst.de; s=dkim; t=1456599115; bh=bYGwrQk6qVBQeFns6JzFhxxw9Z43snhyD4TNllw+/Cw=; h=Subject:To:References:From:Date:In-Reply-To:From; b=ieSRV6httQd5o0aCeRprZGaSkndlt0fDydxyI9k8dL75HANdWrmoO7AP5CfQIdpOc zDzhQVpeRx3TSexl4i3TVNtOgLRs9Mgx8TNu/aJOVK1qoY8XpgN7HxAcxCmGzEDSxr A5AqeeD10r9r9T7hR0x4Y0qx0+UyrvFB/2PuNhNE= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103603 On 27.02.2016 19:13, wrong.address.1@gmail.com wrote: > I am starting to wonder if VB.net would be a better solution for the time being. I have learnt enough VB.net to manage my work but it is bloated and Microsoft dependent. I would recommend the Python option... > I will check it. I got the impression that you can create a GUI but that has to be converted to Python, and then you need a wrapper to put these forms in, and then they can be compiled or converted to *.exe with py2exe. Not a good way for development/debugging. For PyQt with Qt Designer the development flow looks like e.g. https://nikolak.com/pyqt-qt-designer-getting-started/ For non-trivial GUIs you will probably find it easier to create the GUI in Python code yourself. But maybe the created Python code will show you how to use PyQt in the beginning. You will find many "Getting started with..." for both PyQt and wxPython. For either GUI toolkit, you should get a book - either "wxPython in Action" or "Rapid GUI Programming with Python and Qt" (or both). For both toolkits the electronic documentation is not for Python but for C++. For wxPython you get a .chm help file, which contains all documentation in one file and a wxPython demo which contains a browser and example code for almost all GUI components. For PyQt the documentation is online. While it is quite complete, I always have difficulties to find the information I'm looking for... wxPython is currently not really an option for Python 3, but this will change very soon. (Well, it can be used with Python 3 already, but for a beginner I would recommend to start with the so called "classic" version for Python 2, especially as the included demo will be the main source of information.) For debugging you just run the interpreter with the .py file. It's reasonably simple to debug with e.g. WingIDE. When you create a GUI in Python code, it's often the easiest way to explore properties and methods of the GUI classes from the debugger prompt. Regards, Dietmar