On Monday, December 12, 2011 09:05:58 PM Sebastian Hilbert wrote:
> On Monday, December 12, 2011 02:22:42 PM Giovanni Bajo wrote:
>
> Hi,
>
> > Hi Sebastian,
> >
> > can you please attach to the ticket a small source code that reproduces
> > the issue?
>
> See code below. It is an example taken from
> wiki.wxpython.org/WxLibPubSub
>
See below an example which runs unfrozen. freezes but does not run frozen.
Maybe this can serve as a test case.
======================================
# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
os.path.join(HOMEPATH,'support\\useUnicode.py'), 'c:
\\Temp\\pubsub\\pubsub.py'],
pathex=['C:\\Temp\\pubsub'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build\\pyi.win32\\pubsub', 'pubsub.exe'),
debug=False,
strip=False,
upx=True,
console=True )
coll = COLLECT( exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name=os.path.join('dist', 'pubsub'))
===================================
# first line below is necessary only in wxPython 2.8.11.0 since default
# API in this wxPython is pubsub version 1 (expect later versions
# of wxPython to use the kwargs API by default)
from wx.lib.pubsub import setupkwargs
# regular pubsub import
from wx.lib.pubsub import pub
class SomeReceiver(object):
def __init__(self):
pub.subscribe(self.__onObjectAdded, 'object.added')
def __onObjectAdded(self, data, extra1, extra2=None):
# no longer need to access data through message.data.
print 'Object', repr(data), 'is added'
print extra1
if extra2:
print extra2
a = SomeReceiver()
pub.sendMessage('object.added', data=42, extra1='hello!')
pub.sendMessage('object.added', data=42, extra1='hello!', extra2=[2, 3, 5, 7,
11, 13, 17, 19, 23])
=======================================
Thanks,
Sebastian
--
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.