Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. def _on_value_changed_cb(self, spinbtn, prop):
  2. if not self.source:
  3. return
  4.  
  5. value = spinbtn.get_value()
  6.  
  7. res, cvalue = self.__get_source_property(prop)
  8. if not res:
  9. return
  10.  
  11. if value != cvalue:
  12. self.__set_prop(prop, value)
  13. self.app.gui.editor.viewer.overlay_stack.update(self.source)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement