wx on windows + py2exe not work on linux + wine

I thinks that this is a little strange question, but I hope that someone can help me.

I have a little application (python + wx + ctypes +py2exe) that work on windows very well. I want to port it on linux, but I can't use the native port of python and wx because I'm using a windows dll that don't have a native implementation on linux, so I thought to use wine for make working my software on linux platform.

Only for first test, I create a little application (a single frame with one text control and two buttons), and a package with py2exe.

I moved my "dist" directory, that include frame.exe and python libraries, to my linux installation. When I lunched the simple command: wine frame.exe, I received the usual message "Error occurred, see the log file .... for details". This is its content:

Traceback (most recent call last):
  File " wxFrame1.py", line 4, in ?
  File " wx\__init__.pyc", line 42, in ?
  File " wx\_core.pyc", line 4, in ?
  File " wx\_core_.pyc", line 9, in ?
  File " wx\_core_.pyc", line 7, in __load
ImportError: dynamic module does not define init function (init_core_)

But on windows, this package work well.

There's someone that can help me?

Thanks,
Michele

the_shelter a écrit :

Hi,

I think this mail is slightly offtopic:

I need to write a little tool that runs in the background and
'captures' the current URL in InteretExplorer's URL line.
I've been fiddling around with win32com.client
There is a method

ie = Dispatch("InternetExplorer.Application")
text = ie.Document.body.innerHTML

but I cannot find an equivalent for urlline.
Is there a way?
I have to add that I do not have to work on win systems too often and
am missing some practice with com.

I look in every shellwindow for the one I want
so I use something like that

def trouve_browser(url):

     clsid='{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'
     shellwindow = Dispatch(clsid)
     max = range(shellwindow.Count)
     for i in max:
         wUrl = shellwindow[i].LocationURL #unicode
         wait(shellwindow[i])
<--shellwindow[i].Document peut etre un IShellFolderViewDual2!!
             ## {2559a1f1-21d7-11d4-bdaf-00c04f60b9f0} desktop
             ##{645FF040-5081-101B-9F08-00AA002F954E} recycle bin
             ##{BDEADF00-C265-11d0-BCED-00A0C90AB50F} webfolders
             ## {450D8FBA-AD25-11D0-98A8-0800361B1103} my documents
             ## {208D2C60-3AEA-1069-A2D7-08002B30309D} local networks
             ## regedit \\\microsoft\windows
         if unquote(wUrl.encode("utf8")) in (url):
             break
     browser = shellwindow[i]
     return browser
hope it helps, but i'm not so sure