Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98500

Re: [Ubuntu] PyQt5

From Laura Creighton <lac@openend.se>
Newsgroups comp.lang.python
Subject Re: [Ubuntu] PyQt5
Date 2015-11-09 03:41 +0100
Message-ID <mailman.161.1447036880.16136.python-list@python.org> (permalink)
References <d453cf4b-7a30-4b2c-9bff-53d488552671@googlegroups.com> <7056c802-308b-4d5c-961d-052ef2671633@googlegroups.com> <n1okg2$da7$1@ger.gmane.org>

Show all headers | View raw


In a message of Sun, 08 Nov 2015 18:05:32 -0500, Terry Reedy writes:
>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

I suspect that Qt and Idle are disagreeing as to who gets to have the
main thread around here.

Laura

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[Ubuntu] PyQt5 Andrew Diamond <adiamond1978@gmail.com> - 2015-11-07 19:13 -0800
  Re: [Ubuntu] PyQt5 Vincent Vande Vyvre <vincent.vande.vyvre@telenet.be> - 2015-11-08 06:36 +0100
  Re: [Ubuntu] PyQt5 Laura Creighton <lac@openend.se> - 2015-11-08 11:20 +0100
  Re: [Ubuntu] PyQt5 Andrew Diamond <adiamond1978@gmail.com> - 2015-11-08 08:03 -0800
    Re: [Ubuntu] PyQt5 Chris Angelico <rosuav@gmail.com> - 2015-11-09 03:22 +1100
      Re: [Ubuntu] PyQt5 Andrew Diamond <adiamond1978@gmail.com> - 2015-11-08 08:27 -0800
    Re: [Ubuntu] PyQt5 Terry Reedy <tjreedy@udel.edu> - 2015-11-08 18:05 -0500
    Re: [Ubuntu] PyQt5 Laura Creighton <lac@openend.se> - 2015-11-09 03:41 +0100
    Re: [Ubuntu] PyQt5 Terry Reedy <tjreedy@udel.edu> - 2015-11-09 05:24 -0500

csiph-web