Ticket #38 (closed defect: wontfix)

Opened 3 years ago

Last modified 5 months 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.

09/17/11 14:19:00 changed by otaylor

  • status changed from new to closed.
  • resolution set to wontfix.

I don't see supporting this without some very major changes to way that Reinteract works - I have some ideas for such changes, but not too useful to keep a ticket open for this.