[python-win32] ImportError: No module named twisted.internet ?

2007-04-13 Thread Wursteisen David
Have you tried to install the last version of Twisted ? 
(http://twistedmatrix.com/trac/)

uhm, do you know some good resources to do some modifications on this last 
version of this client ? 
Because earch time I try to launch it under windows with python, it crash...
(I use the package BitTorrent5.0.7.tar.gz from Bittorrent.com)

Regards




___
Python-win32 mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] How to make a standalone MFC script?

2007-04-13 Thread Grzegorz Adam Hankiewicz
Mark Hammond wrote:
> It would be very difficult to try and host a web browser control in a
> non-GUI application.  You really are limited to hosting it in either
> pythonwin or wxWindows.  You should be able to get both of those
> environments working with py2exe, but it might not qualify as a "standalone
> script" for you.

It would, I didn't explain myself properly, sorry. When I double click 
the createwin.py example it opens a dialog with a control and just 
works. When I double click the webbrowser.py it asks me to be run from 
inside Pythonwin. I should have asked my question this way: How do I mix 
createwin.py and webbrowser.py to have them run without opening 
pythonwin separately and later creating a binary with py2exe?

Much longer, though.

The reason why I wanted to do this is because I want to embed a the 
crystal reports activex component in a wxpython application, but my 
first tries didn't work. OTOH modifying webbrowser.py was easy and 
worked, but only inside pythonwin.

By now I've managed to successfully run the activex component inside 
wxpython, so I won't need help with the createwin+webbrowser question, 
though I'm still interested on the technical reasons why one works and 
the other doesn't (I'm a total newbie to win32 programing).

 
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:msn:63578:ihehakhbfokpnmnnafdc

The example code posted in the above URL doesn't use wxPython's activex 
module because it doesn't allow me to specify the version of the activex 
control along with the clsid string, unlike gencache's EnsureModule().

I wonder what trickery does win32com to locate the correct version of 
the clsid, which wxpython is unable to do.

-- 
 Rastertech España S.A.
Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/

C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.18) *·*   Fax +34 918 457 889
[EMAIL PROTECTED] *·*   www.rastertech.es


___
Python-win32 mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-win32


[python-win32] Registering an excel addin

2007-04-13 Thread mjohnson
Apologies if this is in an incorrect format, but I have just stumbled on the 
list whilst trying to solve my problem

from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
time.sleep(40)
xlApp.Visible = 1
wb=xlApp.Workbooks.Add()
xlApp.RegisterXLL("C:\Program Files\TestApp\Program\EXLXL32.XLL")

the register step returns false and does not register EXLXL32.XLL.

I haven't included anything else because the following steps are dependant on 
the add-in being loaded which it is not

Thanks in advance
Martin
___
Python-win32 mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Registering an excel addin

2007-04-13 Thread Mark Mc Mahon
Hi,

The problem may be the following...
"C:\Program Files\TestApp\Program\EXLXL32.XLL" != r"C:\Program
Files\TestApp\Program\EXLXL32.XLL"

Otherwise I have no idea about XLL files :-)

Mark

On 4/13/07, mjohnson <[EMAIL PROTECTED]> wrote:
> Apologies if this is in an incorrect format, but I have just stumbled on the
> list whilst trying to solve my problem
>
> from win32com.client import Dispatch
> xlApp = Dispatch("Excel.Application")
> time.sleep(40)
> xlApp.Visible = 1
> wb=xlApp.Workbooks.Add()
> xlApp.RegisterXLL("C:\Program
> Files\TestApp\Program\EXLXL32.XLL")
>
> the register step returns false and does not register EXLXL32.XLL.
>
> I haven't included anything else because the following steps are dependant
> on the add-in being loaded which it is not
>
> Thanks in advance
> Martin
> ___
> Python-win32 mailing list
> [EMAIL PROTECTED]
> http://mail.python.org/mailman/listinfo/python-win32
>
>
___
Python-win32 mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Registering an excel addin

2007-04-13 Thread Tim Roberts
mjohnson wrote:
> Apologies if this is in an incorrect format, but I have just stumbled
> on the list whilst trying to solve my problem
>
> from win32com.client import Dispatch
> xlApp = Dispatch("Excel.Application")
> time.sleep(40)
> xlApp.Visible = 1
> wb=xlApp.Workbooks.Add()
> xlApp.RegisterXLL("C:\Program Files\TestApp\Program\EXLXL32.XLL")
>
> the register step returns false and does not register EXLXL32.XLL.

Yes, Mark is exactly right.  The "\T" in your file name is actually a
"tab" character, rather than the two characters you think it is.  You
have three choices:
1. Double the backslashes:  "C:\\Program
Files\\TestApp\\Program\\EXLXL32.XLL"
2. Use the "r" syntax: r"C:\Program Files\TestApp\Program\EXLXL32.XLL"
3. Use forward slashes:  "C:/Program Files/TestApp/Program/EXLXL32.XLL"

Any of them will work.  Choose the one that makes the most sense to you.

-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

___
Python-win32 mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-win32