示例#1
0
 def select_new_image(button):
     new_image = image_chooser_dialog.get_filename()
     if new_image:
         conf.set("welcome_image", new_image)
         from pychess.widgets.TaskerManager import tasker
         newTheme(tasker, background=new_image)
         tasker.queue_draw()
     else:
         # restore the original
         image_chooser_dialog.set_filename(path)
示例#2
0
 def select_new_image(button):
     new_image = image_chooser_dialog.get_filename()
     if new_image:
         conf.set("welcome_image", new_image)
         from pychess.widgets.TaskerManager import tasker
         newTheme(tasker, background=new_image)
         tasker.queue_draw()
     else:
         # restore the original
         image_chooser_dialog.set_filename(path)