Ticket #38 (new defect)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Allow to work with Gtk code.

Reported by: inean@users.sf.net Assigned to:
Priority: high Keywords:
Cc:

Description

Currently. Reinteract is unable to work with reinteract with Gtk scripts becouse internally, it makes shallow copies of GObject instances. Simple code like this:

import gtk
gtk=gtk.Window()
gtk.connect ('destroy', gtk.main_quit())

Fails. The patch forces reinteract not to copy GObject instance for every scope. This will allow us to make use of reinteract as a Python Console for GNOME programs like gedit, etc.

Attachments

0001-Don-t-copy-objects-wich-smells-like-GObject-ones.-Th.patch (1.2 kB) - added by inean on 08/07/08 15:50:34.
The patch :)

Change History

08/07/08 15:50:34 changed by inean

  • attachment 0001-Don-t-copy-objects-wich-smells-like-GObject-ones.-Th.patch added.

The patch :)

10/04/08 19:03:58 changed by otaylor

It should be noted that there is an additional problem with GTK+ code now: the code in the worksheet is running in a separate thread from the (GTK+ using) user interface, and thus cannot access GTK+. A multiprocess solution might be possible but gets complex when dealing with things like custom results, completion, and doc popups.