bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Python support with windows


From: Øystein O Johansen
Subject: Re: [Bug-gnubg] Python support with windows
Date: Wed, 24 Mar 2004 12:51:22 +0100

> Other problems....

Let me answer some of them.....

> I can't open idle.
>
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
> ImportError: No module named idle.PyShell

import idlelib.idle.PyShell; idlelib.idle.PyShell.main()

should do the trick.

> Maybe I can open Mark Hammonds PythonWin GUI instead?
> How can I do that?

import start_pythonwin

Simple when you know how!

> Python support only works if I link without the -mwindows
> option to gcc. I thought this was because python didn't get
> a stdin or stdout stream, and it does run scripts which
> doesn't use stdin/stdout.

Right!

> Can we write a small GTK window and redirect stdin and stdout
> to this window? (a simplified Python GUI)

No, I think this will be silly. Python has enough GUIs, let's
not make another one.

I'm rewriteing batch.py to communicate with dialogs instead of
stdin/stdout. Then I guess it then will work with MSWindows GUI
builds with the -mwindows link option. :-)

-Øystein


-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]