[Y-devel] libYc-0.1
Peter Prohaska pitrp at wg78.de
Thu Feb 26 16:34:54 GMT 2004
On Thu, Feb 26, 2004 at 03:10:16PM +0000, Richard Hills wrote:
> > Again something about naming conventions...
> >
> > libYc:
> > yCreateWindow;
> > yShowWindow;
> > ySetWindowChild;
> >
> > libYc++:
> > namespace Y...
> > class Window...
> > void show ();
> > void setChild (Widget *);
> > void setFocussed (Widget *);
> >
> > I think it would be better to encode the object model into the function
> > names to avoid confusion.
>
> Yes, you are right. I'm more used to GTK where each function name
> starts with "gtk" in lower case, hence it seemed natural here. This is
> also why I had "Y/libYc.h", reflecting the "gtk/gtk.h" I'm more used to.
> However, I think you have a valid point, and since you're trying to use
> to API, and I'm simply writing it, I'll follow your suggestions.
Great! I'm looking forward to the next release.
Is there a way to retrieve it via arch/cvs/svn etc.?
Would lower badwith and ease sending up to date patches I think.
Perhaps it could be included in the Y archive somewhere.
>
> > Actually I am currently working on interfacing libYc from python.
> > I don't know C++ but i have some experience in C and python. I thought
> > it might be a good start to just wrap libYc instead of implementing
> > the interface in python.
>
> I'm not quite sure I follow what you're trying to do... Are you going
> to write a python wrapper around libYc, so the python API uses libYc for
> low level protocol stuff, or the other way round? I think python around
> libYc, since C is a lower level language, would make more sense, but
> then again, I'm probably slightly biased :)
> Anyway, thanks for your feedback. I will release another version with
> some of your suggestions soon,
I try to write a "python extension module", t.i. a wrapper around libYc
so one can import a Y module and have fun :)
Most of my own little probrams are some mixture of C and python and
would like to see some running in Y. So I started with the python
interface. Perhaps that could be gererated with swig or something but it
seems straight forward to do it by hand for the moment.
This way I can help debugging libYc as a side effect. Python and C are
just my preferred languages and they work very well as a team.
happy hacking,
peter.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved