Re: [pygtk] testgtk

2000-03-04 Thread Rob Hodges

> For this sort of thing, it is probably best to use an rc file like in
> testgtk:
>   pixmap_path ".:/where/pixmaps/are"
>   style "pixmap_background_widget" {
> bg_pixmap[NORMAL] = "somepixmap.xpm"
>   }
>   widget "*somename" style "pixmap_background_widget"
> 
> Then in the program, use:
>   rc_parse('filenamerc')
>   ...
>   widget.set_name("somename")
> 
> This will cause the widget called somename to have the pixmap background.
> If the pixmap can be found, I don't seem to get a segfault, so do not know
> exactly what would be causing it.

I posted a bug report to the list a while back about this (nobody
replied but I assumed it would be acted on; I haven't checked); there
was a 'return 0' statement missing in gtkmodule.c in the
PyGtkStyleHelper_SetItem() function which would cause *successful*
assignment of a pixmap to fall through to a g_assert_not_reached();
maybe you fixed it in the meantime and Javi still has an older version
of PyGtk?  Or maybe you didn't and doing it this way doesn't trigger
that bug?  

Cheers,
-Rob

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] GnomePopupMenu please?

2000-03-04 Thread Hassan Aurag



 It is indeed when I click on the menu which means when I call the 
callback function that I get a crash.

 I have always been wondering why there isn't an independent GnomeMenu 
widget and GnomeToolbar widget not tied to GnomeApp.

 Would that be too difficult to add? I have already done it for 
toolbar and will post it asap.


>> Original Message <<

On 3/3/00, 10:16:45 PM, James Henstridge <[EMAIL PROTECTED]> wrote 
regarding Re: [pygtk] GnomePopupMenu please?:


> GnomePopupMenu in its current state is a bit of a hack.  It tries to
> overwrite the user_data field for each entry in the popup menu, which 
is
> used by gnome-python to store pointers to the python callback 
functions.
> I thought I had fixed the problem, but I guess I had missed it.

> I will have a look at the problem, but I don't know if I can fix the
> problem fully.

> Apparently the whole gnome menus stuff is being rewritten for
> gnome-libs-2, so you don't have to use the current C structure 
interface
> for building menus.

> James.

> --
> Email: [EMAIL PROTECTED]
> WWW:   http://www.daa.com.au/~james/   http://www.daa.com.au/~james/


> On Fri, 3 Mar 2000, Hassan Aurag wrote:

> >
> >  It crashes my app. Simple as that.
> >
> >  Is it broken?
> >
> >
> >
> >
> >
> > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> >

> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] Re: BOUNCE pygtk@daa.com.au: Non-member submission from [Hans Breuer ]

2000-03-04 Thread James Henstridge

I am sorry about not applying your patches before.  I have been doing a
bit of work to fix some of those problems though.

I am currently working on changing pygtk over to use ExtensionClass to
simplify things (no more self._o :), and I am moving over to a package
structure at the same time, which should get rid of the case insensitivity
problems.

I have started this work on the branch `extension-class-branch' of the
pygtk directory (I haven't branched all of gnome-python because I am
currently just trying to get things to work with pygtk at the moment).
There isn't much to see now.  Just a script to try to convert C header
files to the new .defs file format (based on the script sent to me by
Toby Reeves), and a script to merge hand modifications from one .defs file
into a newer generated defs file.  There isn't any actual code to play
around with yet though.  I will probably be porting the basics over to
using ExtensionClass, then do the code generator.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Sun, 5 Mar 2000 [EMAIL PROTECTED] wrote:

> At 11:51 03.03.00 +0200, Matti Picus wrote:
> >I am very interested in getting python and the GIMP working on Windows.
> >What must be done to get python scripting up to the level of script-fu? How
> >difficult would it be to implement a python console that calls GIMP over a
> >socket? Over a pipe? Any ideas how to attack this? Are there enough
> >question marks in this e-mail?
> 
> Some time ago I've ported pygimp and pygtk. Take a look at:
> 
> http://hans.breuer.org/ports
> 
> It should work with the current Gimp version, if you follow the
> installation instructions included.
> 
> 
> Hi James,
> just in the fact, you have lost my mail from 10.11.99 
> 
> Here are some notes about the patch:
> 
> >- Win32 doesn't support filenames different in case only.
> >  So I've renamed GTK.py to GTK_const.py
> >
> >- Currently only _gtk is ported, because it's the only one real
> >  needed for Gimp plug-ins
> >
> >- There are little changes to the Gimp Win32, I'll discuss
> >  them with Tor Lillquist soon.
> 
> Now they are integrated in The Gimp since a while ...
> 
> >- My first plug-in is basically running. It writes The Gimp
> >  documentation from PDB to nice formatted html files. 
> > [...]
> 
> See: http://hans.breuer.org/gimp/pdb/
> 
> Regards,
>   Hans
> 
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] Patches for libglade bindings

2000-03-04 Thread Paul Clifford

I wrote:

> I've attached a patch for the above, created against the gnome-python
> 1.0.51 release.

Oops, the first Py_BuildValue call should have been
callback = Py_BuildValue("(ONN)", func, extra, other);
not
callback = Py_BuildValue("(ONO)", func, extra, other);

Corrected patch is included.
 gnome-python.diff


[pygtk] A simple ZvtTerm question.

2000-03-04 Thread Javi Roman

Somebody can show me a example about method:

 set_color_scheme(self, color_list)

I don't understand very well "color_list" (I'm very clumsy :). I desire
a black background color and white font color. This method is about
this, or I need use styles.


Thanks.
Sincerely, Javi.
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]