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 O Johansen
Subject: Re: [Bug-gnubg] feature request: Using Python
Date: Thu, 29 Jul 2004 13:05:53 +0200

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 );

}

I'll commit this later today unless someone does it before me.

-Ø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]