Am 05.07.2010 22:41, schrieb Ed Leafe:
> On Jul 5, 2010, at 4:32 PM, Chris C. wrote:
>
>> When I double-click the .py file to launch an app created with
>> Dabo's App Wizard, a black cmd-size screen comes up first and
>> stays up until I close the .py app.  If I close the black screen,
>> the .py app closes too.  What is the deal with the black screen?
>> Is it necessary?  Thanks.
>
> It is the window for cmd.exe, the terminal application for Windows.
> Your system has the '.py' extension associated with the regular
> Python executable, which is typically something like
> 'C:\Python2.6\python.exe'. You can change the association for '.py'
> to use the window-less version, which, if the above were where your
> Python was installed, would be in the same folder, but named
> 'pythonw.exe'.
>
Or you can rename those (and only those) Python applications you want to
start from the explorer: if you give them the extension ".pyw" they are 
executed by pythonw.exe.

> While you are learning Python and Dabo, though, I would recommend
> running from the cmd.exe app, as most debugging information will be
> printed to that terminal window. To do this run 'cmd.exe' from the
> Start / Run... menu. You then type in that window to go to your app
> directory, and run the app. Something like this:
>
> cd c:\path\to\my\great\application python main.py (or whatever your
> main app program is)
>
That's certainly preferable for anything which might not be quite
finished. And of course, if your xxx.pyw acts strangely in any way, you
can always start it the same way.

Sibylle

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to