Changes between Initial Version and Version 1 of Ticket #8783, comment 4
- Timestamp:
- Apr 4, 2023, 11:57:27 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8783, comment 4
initial v1 1 Look at ColorButton's _color_changed_cb(). It is catching theRuntimeError caused by set_color()'s call to setStyleSheet() and in that case it avoids emitting the color_changed signal (which would crash). The color_pause signal does not have the same protection. We probably haven't seem this before because few buttons use the color_pause signal (i.e. they use the default pause_delay of None).1 Look at !ColorButton's _color_changed_cb(). It is catching the !RuntimeError caused by set_color()'s call to setStyleSheet() and in that case it avoids emitting the color_changed signal (which would crash). The color_pause signal does not have the same protection. We probably haven't seem this before because few buttons use the color_pause signal (i.e. they use the default pause_delay of None).