Hassan Aurag <[EMAIL PROTECTED]> writes:
[...]
> However, you pointed to the fact that match_add needs 3 arguments.
> Well, it doesn't seem to accept more than 2. So I guess this is either
> a bug in pygtk or I am stupid (any can be true)!
I don't think its a bug (or better, the bug sits somewhere else). The
definition in zvt.py is
def match_add(self, regex, highlight_mask):
return _zvt.zvt_term_match_add(self._o, regex,
highlight_mask, None)
The last argument (which is explicitly set to None) is the user_data,
which seems only useful when you use match_check, which isn't provided
yet (don't ask me why; it should be in zvt.defs, where these functions
are generated from). You could try to add it to zvt.defs and see if it
works; but i think you need a lot of build environment from cvs.
So right now it seems you can define coloring but not find out which
places where matched.
disclaimer: I didn't use these functions, just looked into the source
to find out what's happening.
ciao
Andreas
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]