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

List:       pykde
Subject:    Re: [PyQt] QFileOpenEvent on mac -- working?
From:       Calin Culianu <calin.culianu () gmail ! com>
Date:       2018-10-24 21:21:31
Message-ID: CAFofF9mhtcqa9rEWeDoo0DVcGKC5xKTe+z6KnFP19G4PLR=A4g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Florian,

You are right. It does work on your app.  I just downloaded it and tested
it.  So this definitely isn't a bug in PyQt.

The only thing I can think of is how we package our app versus how yours is
packaged.

Yours uses a more standard approach in having all the libs and files in the
.app bundle and your main "executable" is exposed.

Our app does this pyinstaller monolithic packaging.  Our Electron Cash (and
its parent app, Electrum) are both "monolithic" files in Contents/MacOS
created by pyinstaller.  Internally I believe this executable ends up
unpacking all the files and re-executing itself as the unpacked version.

This could be the culprit -- and not any bug in PyQt!

Thanks so much for providing your app as an example.  I feel I'm getting
closer to solving this problem now.. I hope.

-Calin


On Wed, Oct 24, 2018 at 11:54 PM Florian Bruhin <me@the-compiler.org> wrote:

> On Wed, Oct 24, 2018 at 11:23:56PM +0300, Calin Culianu wrote:
> > From our testing is appears the QFileOpenEvent never makes it to our
> > QApplication instance no matter what we do.
>
> This works fine for me FWIW:
>
> https://github.com/qutebrowser/qutebrowser/blob/v1.5.1/qutebrowser/app.py#L843-L854
>
> Florian
>
> --
> https://www.qutebrowser.org | me@the-compiler.org (Mail/XMPP)
>    GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>          I love long mails! | https://email.is-not-s.ms/
>

[Attachment #5 (text/html)]

<div dir="ltr">Florian,<div><br></div><div>You are right. It does work on your app.   \
I just downloaded it and tested it.   So this definitely isn&#39;t a bug in \
PyQt.</div><div><br></div><div>The only thing I can think of is how we package our \
app versus how yours is packaged.    </div><div><br></div><div>Yours uses a more \
standard approach in having all the libs and files in the .app bundle and your main \
&quot;executable&quot; is exposed.</div><div><br></div><div>Our app does this \
pyinstaller monolithic packaging.   Our Electron Cash (and its parent app, Electrum) \
are both &quot;monolithic&quot; files in Contents/MacOS created by pyinstaller.   \
Internally I believe this executable ends up unpacking all the files and re-executing \
itself as the unpacked version.</div><div><br></div><div>This could be the culprit -- \
and not any bug in PyQt!</div><div><br></div><div>Thanks so much for providing your \
app as an example.   I feel I&#39;m getting closer to solving this problem now.. I \
hope.</div><div><br></div><div>-Calin</div><div><br></div></div><br><div \
class="gmail_quote"><div dir="ltr">On Wed, Oct 24, 2018 at 11:54 PM Florian Bruhin \
&lt;<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Oct 24, 2018 at 11:23:56PM \
+0300, Calin Culianu wrote:<br> &gt; From our testing is appears the QFileOpenEvent \
never makes it to our<br> &gt; QApplication instance no matter what we do.<br>
<br>
This works fine for me FWIW:<br>
<a href="https://github.com/qutebrowser/qutebrowser/blob/v1.5.1/qutebrowser/app.py#L843-L854" \
rel="noreferrer" target="_blank">https://github.com/qutebrowser/qutebrowser/blob/v1.5.1/qutebrowser/app.py#L843-L854</a><br>
 <br>
Florian<br>
<br>
-- <br>
<a href="https://www.qutebrowser.org" rel="noreferrer" \
target="_blank">https://www.qutebrowser.org</a> | <a \
href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a> \
                (Mail/XMPP)<br>
     GPG: 916E B0C8 FD55 A072 | <a href="https://the-compiler.org/pubkey.asc" \
                rel="noreferrer" \
                target="_blank">https://the-compiler.org/pubkey.asc</a><br>
              I love long mails! | <a href="https://email.is-not-s.ms/" \
rel="noreferrer" target="_blank">https://email.is-not-s.ms/</a><br> \
</blockquote></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