phargogh / palisades

Configurable UI chunks for PyQt user interfaces
0 stars 0 forks source link

Allow "returns" to define a return value #37

Open phargogh opened 9 years ago

phargogh commented 9 years ago

Palisades currently allows for "returns": {"ifEmpty": <bool>}, but this merely defines whether the element should return if it is empty. It would be great if we could add a value so that if the element is empty, it returns a different value instead.

phargogh commented 9 years ago

On the other hand, the user can handle this in their script, so it's not a huge deal if we don't allow this behavior.