gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] GNUmed - pyinstaller


From: Sebastian Hilbert
Subject: [Gnumed-devel] GNUmed - pyinstaller
Date: Tue, 13 Dec 2011 11:58:54 +0100
User-agent: KMail/1.13.6 (Linux/2.6.38-13-generic-pae; KDE/4.6.5; i686; ; )

Hi,

Since wxpython 2.8.11.0 there are some changes in the pubsub implementation. 
It ships the v1 and v3 apis and the software will have to explicetly request 
the v3 api. If not it will fall back to the v1 api.

This seems to work unfrozen. Until pyinstaller is fixed to properly handel v1 
it cannot package GNUmed anymore.

However we might look ahead and think about converting GNUmed to v3.

GNUmed can be packaged successfully with pyinstaller when using v3. Some 
changes to GNUmed are needed.

wiki.wxpython.org/WxLibPubSub

shows examples for v1 and v3.

For this 1.1 major release it might not be ok to switch to v3 yet. However 
please consider changing the v1 notation to be more compatible with v3 for 
future conversion.

http://pubsub.sourceforge.net/recipes/upgrade_v1tov3.html

in gmGuiMain.py please change at the top

import wx
import wx.lib.pubsub

...

wx.lib.pubsub.Publish().subscribe()

to 

from wx.lib.pubsub import Publisher

...

Publisher.subscribe()

-----------  

This should be a noninvasive change for v1 as per

http://pubsub.sourceforge.net/recipes/upgrade_v1tov3.html

Publisher.function(...)     # OR:
Publisher().function(...)

... are equivalent

Regards,
Sebastian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]