[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] [Bug] PyQt5 version 5.7.0 OS X.11.4 (El Capitan) MenuBar requires defocus + refocus of ap
From:       Maxwell Grady <max.grady () gmail ! com>
Date:       2016-09-24 18:48:02
Message-ID: CAG9=Xh=p4K6amQtHM=qzqChXhj9moobnkoC71iq4Ax-hQTk5SA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


This is python 3.5 from Anaconda (isolated in a conda env) with PyQt
installed through pip.
By default a conda env doesn't come with pythonw but I guess I could
symlink the file from the main conda install or just run 'conda install
python.app'

I can check if that change's anything on Monday.

On Sat, Sep 24, 2016 at 2:23 PM, Naveen Michaud-Agrawal <
naveen.michaudagrawal@gmail.com> wrote:

> What distribution of python are you running? Perhaps try "pythonw" to
> start the application.
>
> Naveen Michaud-Agrawal
>
> On Sep 24, 2016 1:41 PM, "Maxwell Grady" <max.grady@gmail.com> wrote:
>
>> (realized I didn't hit reply all)
>> To clarify, my code is not part of an app or app bundle and is just run
>> from the command line. The minimal working example to reproduce the bug
>> that I included is also run just from the command line and is not part of
>> an app nor app bundle.
>>
>> Simply invoking " python pyqt5-testmenubar.py" from the command line will
>> run the code and show the bug.
>>
>> On Thu, Sep 22, 2016 at 1:45 PM, Andreas Pakulat <apaku@gmx.de> wrote:
>>
>>> Hi,
>>>
>>> On Thu, Sep 22, 2016 at 7:03 PM, Maxwell Grady <max.grady@gmail.com>
>>> wrote:
>>> > I have a PyQt5 v 5.7.0 app that is cross platform and functioning fine
>>> on
>>> > Windows 10 and Ubuntu 16.04 however on OS X there is a problem with the
>>> > menubar.
>>> >
>>> > When the app is started on OS X, the menubar at the top of the screen
>>> > (native menubar location) appears but can not be clicked. Keyboard
>>> shortcuts
>>> > still work but clicking the menu has no result. If you switch focus to
>>> > another program (Cmd+Tab) and then switch focus back to the PyQt app
>>> > (Cmd+Tab) then the menu is clickable and functions as normal.
>>>
>>> I don't think this is a PyQt issue or even Qt one, I suspect this is
>>> related to the app bundle you use for the application or lack of it. I
>>> see exactly the same issue with an Eclipse based application when
>>> starting it from inside Eclipse (which directly runs java with some
>>> commandline arguments). When launching the final build of the
>>> application through an app bundle everything is working fine.
>>>
>>> So I suspect that this is related to having an app bundle or some
>>> setting within the app bundle.
>>>
>>> Andreas
>>>
>>
>>
>>
>> --
>> University of New Hampshire
>> Department of Physics
>> Pohl Group
>> DeMeritt Hall 119
>> ---
>> Síocháin agus Grá
>>
>> _______________________________________________
>> PyQt mailing list    PyQt@riverbankcomputing.com
>> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>


-- 
University of New Hampshire
Department of Physics
Pohl Group
DeMeritt Hall 119
---
Síocháin agus Grá

[Attachment #5 (text/html)]

<div dir="ltr">This is python 3.5 from Anaconda (isolated in a conda env) with PyQt \
installed through pip.<div>By default a conda env doesn&#39;t come with pythonw but I \
guess I could symlink the file from the main conda install or just run &#39;conda \
install python.app&#39;  </div><div><br></div><div>I can check if that change&#39;s \
anything on Monday.</div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Sat, Sep 24, 2016 at 2:23 PM, Naveen Michaud-Agrawal <span \
dir="ltr">&lt;<a href="mailto:naveen.michaudagrawal@gmail.com" \
target="_blank">naveen.michaudagrawal@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><p dir="ltr">What distribution of python are you running? \
Perhaps try &quot;pythonw&quot; to start the application.</p> <p dir="ltr">Naveen \
Michaud-Agrawal </p> <div class="gmail_extra"><br><div class="gmail_quote"><div><div \
class="h5">On Sep 24, 2016 1:41 PM, &quot;Maxwell Grady&quot; &lt;<a \
href="mailto:max.grady@gmail.com" target="_blank">max.grady@gmail.com</a>&gt; \
wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div \
class="h5"><div dir="ltr">(realized I didn&#39;t hit reply all)<div>To clarify, my \
code is not part of an app or app bundle and is just run from the command line. The \
minimal working example to reproduce the bug that I included is also run just from \
the command line and is not part of an app nor app \
bundle.</div><div><br></div><div>Simply invoking &quot; python \
pyqt5-testmenubar.py&quot; from the command line will run the code and show the \
bug.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 22, \
2016 at 1:45 PM, Andreas Pakulat <span dir="ltr">&lt;<a href="mailto:apaku@gmx.de" \
target="_blank">apaku@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br> \
<span><br> On Thu, Sep 22, 2016 at 7:03 PM, Maxwell Grady &lt;<a \
href="mailto:max.grady@gmail.com" target="_blank">max.grady@gmail.com</a>&gt; \
wrote:<br> &gt; I have a PyQt5 v 5.7.0 app that is cross platform and functioning \
fine on<br> &gt; Windows 10 and Ubuntu 16.04 however on OS X there is a problem with \
the<br> &gt; menubar.<br>
&gt;<br>
&gt; When the app is started on OS X, the menubar at the top of the screen<br>
&gt; (native menubar location) appears but can not be clicked. Keyboard shortcuts<br>
&gt; still work but clicking the menu has no result. If you switch focus to<br>
&gt; another program (Cmd+Tab) and then switch focus back to the PyQt app<br>
&gt; (Cmd+Tab) then the menu is clickable and functions as normal.<br>
<br>
</span>I don&#39;t think this is a PyQt issue or even Qt one, I suspect this is<br>
related to the app bundle you use for the application or lack of it. I<br>
see exactly the same issue with an Eclipse based application when<br>
starting it from inside Eclipse (which directly runs java with some<br>
commandline arguments). When launching the final build of the<br>
application through an app bundle everything is working fine.<br>
<br>
So I suspect that this is related to having an app bundle or some<br>
setting within the app bundle.<br>
<span><font color="#888888"><br>
Andreas<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
data-smartmail="gmail_signature"><div dir="ltr"><div>University of New \
Hampshire</div><div>Department of Physics</div><div>Pohl Group</div><div>DeMeritt \
Hall 119</div><div>---</div>Síocháin agus Grá</div></div> </div>
<br></div></div>______________________________<wbr>_________________<br>
PyQt mailing list      <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" \
target="_blank">https://www.riverbankcomputing<wbr>.com/mailman/listinfo/pyqt</a><br></blockquote></div></div>
 </blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><div>University of New Hampshire</div><div>Department of \
Physics</div><div>Pohl Group</div><div>DeMeritt Hall \
119</div><div>---</div>Síocháin agus Grá</div></div> </div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic