Correction: if autosetuppubsubv1.py is not there, it uses the default api, which is v3. I get the impression that no one uses v2; it's usually legacy (v1) or current (v3).
On Wed, Oct 20, 2010 at 8:17 AM, Daniel Hyams <[email protected]> wrote: > As an addendum to this, the pubsub included with wx (wx.lib.pubsub) will > try to automatically import v1, if you don't manually import setupv1 or > setupv2 beforehand. It looks for the presence of > autosetuppubsubv1.py; if it is there, it automatically sets itself up with > v1 apis. If not, it does v2 (I think). In wx.lib.pubsub. there is an > autosetuppubsubv1.py present, so it by default uses v1 apis. > > Look for _tryAutoSetupV1() here: > > > http://www.java2s.com/Open-Source/Python/GUI/wxPython/wxPython-src-2.8.11.0/wxPython/wx/lib/pubsub/__init__.py.htm > > > Thanks Giovanni! I feel very badly that I have not been able to contribute > to the solution for this problem; I would have loved to have just supplied > you with a hook-* file for you to incorporate. > > > On Wed, Oct 20, 2010 at 7:18 AM, Martin Zibricky <[email protected]>wrote: > >> Giovanni Bajo píše v St 20. 10. 2010 v 11:42 +0200: >> > >> > While I'm looking into how to fix this, how does the user switch >> > between >> > v1 and v2 api? That is, how is PyInstaller supposed to discover which >> > one >> > is being used? >> >> # before any use of pubsub >> from wx.lib.pubsub import setupv1 # v1 API >> from wx.lib.pubsub import setupv2 # v2 API >> >> by default in wx.lib.pubsub is used v1 API >> >> -- >> You received this message because you are subscribed to the Google Groups >> "PyInstaller" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<pyinstaller%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/pyinstaller?hl=en. >> >> > > > -- > Daniel Hyams > [email protected] > -- Daniel Hyams [email protected] -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
