I put my ideas about this in your PR.

On Thu, May 10, 2018 at 11:50 PM, Glenn Ramsey <[email protected]> wrote:

> Hi,
>
> I'm trying to figure out how to implement a test for PyQt5's QWebEngine on
> OSX.
>
> The following test setup generates both a 'standard' executable and a .app
> but
> the test framework runs the standard exe, which doesn't work.
>
> @importorskip('PyQt5')
> def test_PyQt5_QWebEngine(pyi_builder):
>     pyi_builder.test_source(
>         """
>         from PyQt5.QtWidgets import QApplication
>         from PyQt5.QtWebEngineWidgets import QWebEngineView
>         from PyQt5.QtCore import QUrl
>         app = QApplication( [] )
>         view = QWebEngineView()
>         view.load( QUrl( "http://www.pyinstaller.org"; ) )
>         view.show()
>         view.page().loadFinished.connect(lambda ok: app.quit())
>         app.exec_()
>         """, pyi_args=['--windowed', '--osx-bundle-identifier',
> 'org.qt-project.Qt.QtWebEngineCore'])
>
>
> The .app runs if I double click it in Finder or execute it from the
> command line.
>
> How do I tell the test framework to run the .app instead of the the
> standard exe?
>
> Glenn
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/pyinstaller.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi State, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to