call to function by text variable

ianaré ianare at gmail.com
Sun Mar 25 19:01:50 EDT 2007


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!




More information about the Python-list mailing list