Re: FlashWindow and PDFWindow
John Henry <[email protected]> Sat, 14 Nov 2009 21:59:36 -0800 (PST)
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
To make my long march complete, if you include these two components in your app and need to create an exe using py2exe, you need to read up: http://wiki.wxpython.org/CreatingStandaloneExecutables The part I used begins with the paragraph: "Another work-around if you run into issues running py2exe compiled programs with the ActiveXWrapper controls (specifically the PDF Window control in wxPython 2.8) is to add a typelibs entry to the options argument in your setup.py file. See the sample setup.py below for an example." and applied the sample setup as listed. I have no clue what all those syntax are (the manifest, dependency, and so forth). I simply copied them exactly as listed and works right away. Good luck. -- John Henry > >From: John Henry <[email protected]> >To: [email protected] >Sent: Sat, November 14, 2009 10:50:39 AM >Subject: Re: [Pythoncard-users] FlashWindow and PDFWindow > > >I created an entry in the Feature Request page > >https://sourceforge.net/tracker/?atid=369015&group_id=19015&func=browse > >and uploaded all of the files needed for the FlashWindow and PDFWindow wrapper. You can download from there. > > -- >John Henry > > > >> >>From: John Henry >> <[email protected]> >>To: Alec Bennett <[email protected]> >>Cc: [email protected] >>Sent: Fri, November 13, 2009 9:13:27 PM >>Subject: Re: [Pythoncard-users] FlashWindow and PDFWindow >> >> >>Attached. >> >>To get PDFWindow working, I had no choice but to make some minor mods to wxPython and a file in win32com. See the readme.txt in the zip. >> >>I've tested both components and it works for me. I hope it works for you. >> -- >>John Henry >> >> >> >>> >>>From: Alec Bennett <[email protected]> >>>To: [email protected] >>>Sent: Fri, >>> November 13, 2009 4:45:56 PM >>>Subject: Re: [Pythoncard-users] FlashWindow and PDFWindow >>> >>>>>> This is really great. Would it be possible to send me your PythonCard file so I can use FlashWindow? >>> >>> >>> >>> >>> >>> >>> >>>> >>>> >>>> >>>> >>>>On Fri, Nov 13, 2009 at 4:39 PM, John Henry <[email protected]> wrote: >>>> >>>>Ok. I did a search and added "PDFWindow, flashWindow" to everywhere I found htmlWindow and IEHtmlWindow and it works great now. >>>>> >>>>>>>>>>I still a little issue with PDFWindow but otherwise both of the PDFWindow and FlashWindow wrappers work. , I'll report back once I figure out the remaining issue with PDFWindow. >>>>> >>>>>>>>>> -- >>>>>John Henry >>>>> >>>>> >>>>> >>>>> >>>>>>>>>>----- Original Message ---- >>>>>>>>>>> From: Neil Hughes <[email protected]> >>>>>>>>>>> To: John Henry <[email protected]> >>>>>>>>>>> Cc: [email protected] >>>>>>>>>>> Sent: Tue, November 10, 2009 6:08:51 AM >>>>>>>>>>> Subject: Re: [Pythoncard-users] FlashWindow and PDFWindow >>>>>>>>>>> >>>>>>>>>>> On 2/11/09 19:48, John Henry wrote: >>>>>>>>>>> > I can now be more specific about the layoutEditor error in handling the >>>>>>>>>>> PDFWindow & FlashWindow wrappers. layoutEditor actually creates the components >>>>>>>>>>> fine (in the same manner as htmlWindow) but when it saves the file, it always >>>>>>>>>>> ended up with a size of (-1,-1). Of course that won't work properly. >>>>>>>>>>> > >>>>>>>>>>> > What do I need to do to fix this? >>>>>>>>>>> >>>>>>>>>>> Hmmm...this sounds familiar. I came across a similar problem with the >>>>>>>>>>> built-in components on OSX after a particular version of wxPython came >>>>>>>>>>> out, back in 2008, and although it won't be the same issue as you're >>>>>>>>>>> getting it might pinpoint the code you need to modify. Take a look at >>>>>>>>>>> the mailing list archive around October 08. >>>>>>>>>>> >>>>>>>>>>> The code for the layout editor will be making calls to GetBestSize() >>>>>>>>>>> before it writes the resource file, unless you add PDFWindow to the list >>>>>>>>>>> of excluded components. If GetBestSize returns a width and height equal >>>>>>>>>>> to the current dimensions (which it did...and might still do...on OSX), >>>>>>>>>>> it substitutes (-1,-1). Not sure why, and in some of the editors Kevin >>>>>>>>>>> has added a comment querying the need to do this. >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Neil Hughes >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>>>>>>>>>> trial. Simplify your report design, integration and deployment - and focus on >>>>>>>>>>> what you do best, core application coding. Discover what's new with >>>>>>>>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> Pythoncard-users mailing list >>>>>>>>>>> [email protected] >>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/pythoncard-users >>>>> >>>>> >>>>>>>>>>------------------------------------------------------------------------------ >>>>>>>>>>Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>>>>>>>>>trial. Simplify your report design, integration and deployment - and focus on >>>>>>>>>>what you do best, core application coding. Discover what's new with >>>>>>>>>>Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>>>>>>>>_______________________________________________ >>>>>>>>>>Pythoncard-users mailing list >>>>>[email protected] >>>>>https://lists.sourceforge.net/lists/listinfo/pythoncard-users >>>>> >>>> >>> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pythoncard-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pythoncard-users