bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] feature request: Using Python


From: Øystein Johansen
Subject: Re: [Bug-gnubg] feature request: Using Python
Date: Fri, 06 Aug 2004 00:39:48 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Øystein O Johansen wrote:
| Yes, this is a bug!
|
| Using the meny item "Python shell (IDLE)" does not work, at least not with
| the Windows build.
|
| I think this is a Python nameing difference on Window systems and Unix
| system. What's called idle on Linux is called idlelib on Windows.
|
| Hence the lines in PythonShell() in gtkgame.c should be changed:
|
| static void
| PythonShell( gpointer *p, guint n, GtkWidget *pw ) {
|
| #if WIN32
|   char *pch = g_strdup( ">import idlelib.PyShell;
idlelib.PyShell.main()\n"
| );
| #else
|   char *pch = g_strdup( ">import idle.PyShell; idle.PyShell.main()\n" );
| #endif
|
|   UserCommand( pch );
|
|   g_free( pch );
|
| }

Yes, I see the bugfix is commited! Today I've even tried it ;-)

I've managed to upgrade to python23 now. It works nice and smoothly
except for the above fix. The first part, import idlelib.PyShell, works
fine. But when it recieves the .main() call, it looks like idle tries to
open a new instance of GNU Backgammon. Then it complains:

8833: No such file or directory

and then:

__import__(idlelib.run).run.main(True): No such file or directory

Anyone have any ideas?

- -Øystein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBErcy6kDTFPhwyqYRAmkYAJ9ySu0wFc0rHw7akAdycv15LXp7swCfQdVK
Bni67wWaS+b6vUbiVsDhu3o=
=Ed3S
-----END PGP SIGNATURE-----




reply via email to

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