Replace EVAL and EXEC

In the old code, eval() and exec() were used to insert properties in
an object with an specific name. This is clearly an ugly solution,
when the right way is to use self.__setattr__ and self.__dict__.

This patch replaces that ugly code with new one that follows the
pythonic way of doing the things.
This commit is contained in:
Sergio Costas 2019-01-02 22:47:09 +01:00
parent f0893b3ff7
commit 3a532f504a
2 changed files with 86 additions and 106 deletions

View file

@ -438,7 +438,7 @@ class file_movie(devedeng.interface_manager.interface_manager):
def on_help_clicked(self, b):
help_file = devedeng.help.help("file.html")
devedeng.help.help("file.html")
def properties(self):