def _get_image_slice(self): from traitsui.wx.image_slice import image_slice_for if self.image is None: return None return image_slice_for(self.image)
def _get_image_slice(self): if self.image is None: return None if ETSConfig.toolkit == "wx": from traitsui.wx.image_slice import image_slice_for return image_slice_for(self.image)