fix error on pushButton "render"

error:
TypeError: unable to convert a Python 'str' object to a C++ 'bool' instance