예제 #1
0
 def click_icon(self) -> None:
     file_path = image_chooser(self, ICONS_PATH)
     if file_path:
         image = images.from_file(file_path, width=images.NODE_SIZE)
         self.image = image
         self.image_file = file_path
         self.image_button.config(image=self.image)
예제 #2
0
 def click_icon(self) -> None:
     file_path = image_chooser(self, ICONS_PATH)
     if file_path:
         image = Images.create(file_path, nodeutils.ICON_SIZE)
         self.image = image
         self.image_file = file_path
         self.image_button.config(image=self.image)
예제 #3
0
 def click_open_image(self) -> None:
     filename = image_chooser(self, BACKGROUNDS_PATH)
     if filename:
         self.filename.set(filename)
         self.draw_preview()