Re: Conditional widget style
Johan Vromans <[email protected]> Fri, 4 Feb 2022 17:29:42 +0100
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Organization | Squirrel Consultancy |
| Message-ID | <[email protected]> |
Hi Dietmar,
On Fri, 4 Feb 2022 17:02:41 +0100, Dietmar Schwertberger wrote:
> I will also modify the dialog to accept Perl Syntax. Is it enough to
> accept ":" in addition to characters and digits?
Yes, that would be all, I think.
> Did you look at my message "Event binding: change Python code"?
> Should the binding changed for Perl as well?
>
> The template for binding currently looks like this:
> tmpl = '''%(tab)s%(event)s($self, %(obj_id)s,
> $self->can('%(handler)s'));\n'''
Yes, I took a look a while ago. The event binding code looks okay, e.g.
Wx::Event::EVT_MENU($self, wxID_NEW, $self->can('OnNew'));
Thanks for keeping this useful tool alive!