Пример #1
0
 def config(self):
     ColorManager.set_front(self.para['front'])
     ColorManager.set_back(self.para['back'])
Пример #2
0
 def mouse_down(self, ips, x, y, btn, **key):
     if btn == 1: ColorManager.set_front(ips.img[int(y), int(x)])
     if btn == 3: ColorManager.set_back(ips.img[int(y), int(x)])
     print(ips.img[int(y), int(x)])
     print(ColorManager.get_front())