call to function by text variable

ianaré ianare at gmail.com
Sun Mar 25 19:07:16 EDT 2007


On Mar 25, 7:01 pm, "ianaré" <ian... at gmail.com> wrote:
> Cool now I can run it through the translator.
>
> ops = (_("Directory"), _("Replace"), _("ChangeCase"),
>        _("Move"), _("Swap"), _("Insert"), _("ChangeLength"))
>
> self.operations.insert(pos, getattr(operations, ops[n]).Panel(self,
> main))
>
> Thanks guys!

erm ... brainfart LOL. But now I can link it to the translated list.




More information about the Python-list mailing list