Re: new php-gtk widget
| From: | Alan Knowles | Date: | Mon, 25 Nov 2002 00:36:51 +0000 |
| Subject: | Re: new php-gtk widget | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2720@lists.php.net to get a copy of this message | ||
Ivan Rodriguez wrote:
Hi, I'm trying to make a new widget for PHP-GTK,I do this:
[root@localhost ext]# ./ext_skel --widget=gtkgraph
Creating directory gtkgraph
Creating skeleton files
cp: no se puede efectuar stat' sobre .cvsignore': No existe el fichero
o el directorio
Can't open .cvsignore: No existe el fichero o el directorio.
Can't open .cvsignore: No existe el fichero o el directorio.
Can't open .cvsignore: No existe el fichero o el directorio.
Skeleton built.
This stuff is normal - just ignore it.
Now you can create your gtkgraph/gtkgraph.defs file with:looks like theres a bug in they python stuff somewhere.. - I suggest you read the code in pygen, it's not as simple as just giving it the .h files and expecting an output unfortunatly.... or if you are really game, have a go hacking on the php version of h2def2.php http://devel.akbkhome.com/PHP_CGenerator-rel-0.1.tgz It's in the base directory of that. (I've not really worked through the object bits on that, but If you had time...) Regards Alan../generator/h2def.py <path>/gtkgraph.h >gtkgraph/gtkgraph.defsand don't forget to add the constructor line to gtkgraph.defs:(is-constructor-of Gtkgtkgraph)in the definition of gtk_gtkgraph_new Them when I put: [root@localhost ext]# ../generator/h2def.py /root/cgtk/widget/gtkgraph.hgtkgraph/gtkgraph.defsTraceback (most recent call last): File "../generator/h2def.py", line 345, in ? write_def(filename,None) File "../generator/h2def.py", line 301, in write_def buf = define_func(buf, fp) File "../generator/h2def.py", line 231, in define_func args=arg_split_pat.split(args,', ') TypeError: an integer is required And I the script don't write all code of the gtkgraph.defs and gtkgraph.overrides . What can I do? Help me please. Thanks a lot.