Exemplo n.º 1
0
 def __on_pixel_size_changed(self, event):
     error_text = 'Pixel size must be a number'
     text = self.__pixel_size_edit_box.Value
     if text.isdigit():
         cpprefs.set_pixel_size(int(text))
         self.pop_error_text(error_text)
     else:
         self.set_error_text(error_text)
Exemplo n.º 2
0
 def __on_pixel_size_changed(self,event):
     error_text = 'Pixel size must be a number'
     text = self.__pixel_size_edit_box.Value
     if text.isdigit():
         cpprefs.set_pixel_size(int(text))
         self.pop_error_text(error_text)
     else:
         self.set_error_text(error_text)