MCPcopy Create free account
hub / github.com/Image-Py/imagepy / on_cmap

Method on_cmap

imagepy/widgets/histogram/histogram_wgt.py:83–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self.range = (0, 255)
82
83 def on_cmap(self):
84 ips = IPy.get_ips()
85 if ips is None: return
86 cmap = CMapPanel.linear_color(self.cmap.GetValue())
87 ips.lut = cmap
88 ips.update()
89
90 def on_cmapsel(self, event):
91 ips = IPy.get_ips()

Callers

nothing calls this directly

Calls 3

linear_colorMethod · 0.80
GetValueMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected