Hi Bruno,
The sort of thing I mean about a minimal example is, if you make a script
something like this:
*word = win32.gencache.EnsureDispatch("Word.Application")**
*
* print word
*
*print word.Documents
*
*print len(word.Documents)
*
*for d in word.Documents:
*
* print d.Name
*
Run it directly, and you should see information about your open documents.
Then freeze it (with the Console base) and run the frozen version. If it
fails, you should see some idea of what the problem is. If it works, how
much more of your program do you need to add in to make it fail?*
*
Best wishes,
Thomas*
*
**
On 6 February 2013 10:28, bruno gallart <[email protected]> wrote:
> Hello Thomas, :-)
>
> My message was a quite idiot without good information. :-! I am going to
> try to be clear (I hope !). :-\
> I did a screen test with
> EDI : Eric4
> Qt4
> plugin cx-freeze for Eric4
> pywin32 to link my program with Microsoft Word
> Here my screen empty (screenTest_Empty.png)
>
>
> the code for the push button " Document(s) Word actif(s) "
>
> *@pyqtSignature("")**
> ** def on_pushButton_clicked(self):**
> ** # copy and paste**
> ** self.lineEdit_2.setText(self.lineEdit.text())**
> ** **
> ** # Office Word**
> ** self.ltDocActifs.clear()**
> **
> ** word = win32.gencache.EnsureDispatch("Word.Application")**
> ** docWord = word.Documents**
> ** if len(docWord) <1:**
> ** self.ltDocActifs.addItem(" No Word's file")**
> ** else:**
> ** for doc in docWord:**
> ** self.ltDocActifs.addItem(doc.Name)*
>
> With Eric4 or with "python correcteur.py" , I have this screen good.
> (screenTest_Good.png)
>
>
>
> The paste between the 2 EditText is good and I have not open a Word's
> document, if I did the title of the Word's document were in the List.
> If I "cxFreeze" and I run my "correcteur.exe", I have this result
> (screenTest_False.png). it does nothing for Word's document but it makes
> the paste.
> And I have not message error. In conclusion I think that the problem comes
> with pywin32 ???
>
>
>
> I put the output from the cxFreeze's plugin of Eric4 in attached document
> but I don't see any error. But I am not good in cxFreeze.
>
> I hope I was clear and thanks for your help Thomas
>
> Cheers,
> Bruno
>
>
> Le 05/02/2013 18:37, Thomas Kluyver a écrit :
>
> On 3 February 2013 16:28, bruno gallart <[email protected]> wrote:
>
>> if I "cxfreeze" my application, the setup works fine (I have not error
>> message) but when I run my application "main.exe" only the copy and
>> paste between the 2 lineEdit works . It doesn't give me the title of the
>> Word's document opened. I have tried many way to do the paquet with
>> cxfreeze (make the setup etc...) but nothing works only the copy and
>> paste with Qt objects.
>
>
> Hi Bruno,
>
> I don't know off the top of my head. Can you try to reduce it to a minimal
> code example that reproduces the problem? E.g. is Qt relevant, or is it
> just about pywin32? Are you also using the most recent release of cx_Freeze
> (currently 4.3.1)?
>
> Best wishes,
> Thomas
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.http://p.sf.net/sfu/sophos-d2d-feb
>
>
>
> _______________________________________________
> cx-freeze-users mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> cx-freeze-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users