Re: PY2exe

Alec Bennett <[email protected]> Tue, 31 Mar 2009 16:14:30 -0800
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
I'm not sure I understand your issue, but note that you need to
explicitly import each PythonCard widget when packaging with
PyInstaller, probably the same with Py2Exe.

from PythonCard.components import statictext, imagebutton, textfield,
textarea, staticline, slider, choice, checkbox

Make sure to import any widget you use in this manner.




On Tue, Mar 31, 2009 at 2:40 PM, Robert Lewis <[email protected]> wrote:
> Is it possible to make executables with multiple forms, etc. with PY2exe? I
> am having trouble getting the "python" command to run from the command line
> in DOS.
>
> Robert J. Lewis
> Graduate Assistant
> Doctoral Program in Communication
> Office: 456 CAS Building
> E-mail: [email protected]
>
>
> -----Original Message-----
> From: Neil Hughes [mailto:[email protected]]
> Sent: Tuesday, March 31, 2009 1:35 PM
> To: Kevin Altis
> Cc: [email protected]
> Subject: Re: [Pythoncard-users] Pythoncard + Python 2.6 + OSX (was Re:
> codeEditor still not working on OSX with wxPython 2.8.9.1)
>
> On Tue, 31 Mar 2009 08:40:05 -0700 Kevin Altis <[email protected]>
> wrote:
>
>> On Mar 31, 2009, at 5:49 AM, Neil Hughes wrote:
>> >
>> > The bad news is that none of my Python scripts run by
>> > double-clicking on them. The 2.6 version of "Python Launcher"
>> > briefly pops up and disappears and....nothing :-(
>>
>> You should have a Python Launcher application in the MacPython 2.6
>> folder in Applications. When you double-click on a script this is
>> what should get launched. If not, then you have to do a Get Info on
>> a Python script; .py, .pyw, .pyc have to be done separately. I'm
>> guessing the MacPython installer sets IDLE as the default
>> application for scripts.
>
> This is where it gets a bit confusing. I still have a "MacPython 2.3"
> folder in Applications, which I must have installed at some point in
> the past even though the default Tiger Python is 2.3.5. But I now also
> have "Python 2.6" in Applications with the same tools (Python Launcher,
> IDLE, samples, etc.) following the Python 2.6 install. This is the 2.6
> I downloaded by following the download links in www.python.org.
>
> I should have been a bit clearer. When I double-click on minimal.py (or
> any other Python script) the Python Launcher preference window briefly
> appears for a fraction of a second and then disappears. I assume it's
> the 2.6 version but it goes so quickly it's difficult to tell. Nothing
> actually runs.
>
> Thanks for sending through the other details...I'll compare them to my
> set-up when I get a bit more time.
>
> --
> Neil Hughes
>
> ----------------------------------------------------------------------------
> --
> _______________________________________________
> Pythoncard-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Pythoncard-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>

------------------------------------------------------------------------------