ok, here's what I want to do: ---- foobar.py --------------- class foo: def bar(self): print "bar called"
def foobar(): print "foobar called" ----------------------------------
and I'm gonna make up the syntax here: ----- test.c ------------------- #include <python.h> /* dunno if this is right */
void main() { PyObject *o; o = PyLoadModule("foobar"); o.call("foobar");
PyObject *x; x = PyImport("foobar.foo"); x.call("bar"); } ----------------------------------
what I want to know is the proper syntax to do this...the docs are sketchy Also, what's the correct way to pass a C struct to python?
On Wed, 16 Mar 2005 14:03:26 -0600, Aaron Griffin aaronmgriffin@gmail.com wrote:
what I want to know is the proper syntax to do this...the docs are sketchy Also, what's the correct way to pass a C struct to python?
No idea, but I could tell you how to do it in Java. :-D
I assume this is some experiments you may use for the window manager you may be developing. I thought I should bring that project up, because I know at least one member of this list (punkrockguy) was interested in developing a wm a while back. Take a look here, folks:
http://bbs.archlinux.org/viewtopic.php?t=10768
Dusty
I assume this is some experiments you may use for the window manager you may be developing. I thought I should bring that project up, because I know at least one member of this list (punkrockguy) was interested in developing a wm a while back. Take a look here, folks:
Yeah, I've been messing around with modular event handlers, and a nice event system...
I think I'm going to have to wrap the Xlib event system... for 2 reasons: a) so modules do not depend on structures and constants from <X11/Xlib.h>, and can therefore be written in java, or groovy, or python b) in order to add custom events not directly part of X... maybe I want a TacosAreDoneEvent fired when my some timer goes off... *ding*
arch-projects@lists.archlinux.org