[pygtk] GObject binding improvements
Stephen Langer
stephen.langer at nist.gov
Fri Apr 14 04:56:49 WST 2006
On Apr 11, 2006, at 12:13 PM, Johan Dahlin wrote:
> Hi dear list
>
> I just rearrange the layout of the gobject modules in pygobject CVS
> so it
> allows the following two things, that was not possible before:
>
> 1) Use Python for implementing parts of the current API
> 2) Add additional functionality on top of the current bindings,
> written in
> Python instead of C.
Does this mean that it is possible to redefine, in Python, methods of
existing pygtk classes? I'm writing code to log and replay a user's
actions, and it would be really convenient if I could redefine
GObject.connect, instead of replacing all calls to GObject.connect
with calls to mylogger.connect. Then logging could be added to any
existing code simply by importing a module and making a few function
calls.
-- Steve
--
-- EMail: stephen.langer at nist.gov Phone: (301)
975-5423 --
-- WWW: http://math.nist.gov/mcsd/Staff/SLanger/ Fax: (301)
975-3144 --
-- Mail: NIST; 100 Bureau Drive -- Stop 8910; Gaithersburg, Md
20899-8910 --
-- "I don't think this will work. That's why it's
science." --
-- Naomi Langer, 17 Feb
2003 --
More information about the pygtk
mailing list