def test_configure_avoidmousewheel(self): widget = self.create() widget_list = tuple([tkmacosx.Colorscale(widget) for i in range(10)]) self.checkParam(widget, 'avoidmousewheel', widget_list[0]) widget['avoidmousewheel'] = widget_list for w in widget_list: self.assertIn(w, widget['avoidmousewheel'])
def create(self, **kwargs): return tkmacosx.Colorscale(self.root, **kwargs)