Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: [Ubuntu] PyQt5 Date: Sun, 8 Nov 2015 18:05:32 -0500 Lines: 38 Message-ID: References: <7056c802-308b-4d5c-961d-052ef2671633@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de tyc1U8NP8I7bb9YXxt8BUA4uIixzPFidBNrBmVNNKP8Q== 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; 'subject:: [': 0.03; 'tries': 0.05; 'works.': 0.07; 'buttons': 0.09; 'fix.': 0.09; 'mode,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.11; 'apps': 0.15; 'editor,': 0.16; 'idle.': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'sudo': 0.16; "up'": 0.16; 'wrote:': 0.16; 'gui': 0.18; 'shell': 0.18; 'subject:] ': 0.19; '2015': 0.20; 'fairly': 0.22; 'not,': 0.22; 'tkinter': 0.22; 'trying': 0.22; 'am,': 0.23; 'tried': 0.24; 'examples': 0.24; 'somewhere': 0.24; 'header:In- Reply-To:1': 0.24; 'install': 0.25; 'header:User-Agent:1': 0.26; 'example': 0.26; 'installed': 0.26; 'header:X-Complaints-To:1': 0.26; 'andrew': 0.27; 'transition': 0.27; 'fine': 0.28; 'locks': 0.29; "i'm": 0.30; 'code': 0.30; "i'd": 0.31; 'supposed': 0.31; 'up.': 0.32; 'run': 0.33; 'problem': 0.33; 'idle': 0.33; 'ubuntu': 0.33; 'handle': 0.34; 'running': 0.34; 'add': 0.34; 'could': 0.35; 'there': 0.36; 'mode': 0.36; 'to:addr:python-list': 0.36; 'received:org': 0.37; 'itself': 0.38; 'why': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'saturday,': 0.63; 'within': 0.64; 'click': 0.76; 'apt-get': 0.84; 'received:fios.verizon.net': 0.91; 'simulation': 0.91; 'imagine': 0.96 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-173-59-124-74.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <7056c802-308b-4d5c-961d-052ef2671633@googlegroups.com> 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: , Xref: csiph.com comp.lang.python:98483 On 11/8/2015 11:03 AM, Andrew Diamond wrote: > On Saturday, November 7, 2015 at 10:13:25 PM UTC-5, Andrew Diamond > wrote: >> Hi! >> >> I'm fairly new to Python, and installed pyqt5 and began working >> through the examples at http://zetcode.com/gui/pyqt5/menustoolbars/ >> However, whenever I click one of the buttons or menus in the >> example apps I run that is supposed to quit the application, it >> locks up. What is 'it'? And what does 'lock up' mean? Did the gui freeze and not disappear? Or did IDLE itself freeze, and even the menu quit working? >> This happens with all the examples I installed that >> handle code to quit the app. >> >> Running Ubuntu 15.10, and installed pyqt5 via: >> >> sudo apt-get install python3-pyqt5 sudo apt-get install qtcreator > I just read somewhere that the issue could be because I was trying to > run these examples from within Idle. I am an IDLE maintainer. Am I to take it that everything ran fine before you tried to quit? If not, I would want to know why and try to fix. If you run tut.py from an IDLE editor, IDLE tries to run it the same as if you ran it at a console in the tut.py directory with 'python3 -i tut.py'. I can imagine that there might be a problem with the transition from gui mode to interactive shell mode, though it works for tkinter apps. You said 'python3 tut.py' works. What happens if you add the '-i' option? I'd like to know if the transition problem is in (Py)qt5 or in IDLE's simulation of '-i'. -- Terry Jan Reedy