Hi Zak,

On 06/04/13 07:09, Zak wrote:
Hello Glenn,

I admittedly know PySide a lot better than PyQt, and they are a bit different,
but I noticed two possible problems:

1. You never call a.exec_(). In your example, 'a' is the QApplication instance,
and calling QApplication.exec_() is important. Calling .exec_() on the widget is
no substitute, calling .exec_() on a widget in this instance is similar to
calling .show().

Thanks for the tip. However I'm slightly skeptical about that since it works when not packaged as a app. In any case, adding m.show(); a.exec_() makes no difference.

2. After being bitten several times, I have decided it is best to never use "if
__name__ == '__main__'" with PySide. Make the PySide code execute no matter
what. This is not kosher Python because importing a module is not supposed to
have side effects, but I recommend it nonetheless. However, the "if __name__ ==
'__main__'" clause is probably not your problem here, because you said it does
print "Hello", so the code is being executed. I still think it is good practice
to avoid this conditional construct.

I'll keep that in mind.

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 http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to