rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: self.curr_img_in_list += 1 else: if self.listwrap_mode == 0: if self.slideshow_mode == True: self.toggle_slideshow(None) return elif self.listwrap_mode == 1: self.curr_img_in_list = 0 else: if self.fullscreen_mode == True: self.change_cursor(None... | self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: self.curr_img_in_list += 1 else: if self.listwrap_mode == 0: if self.slideshow_mode == True: self.toggle_slideshow(None) return elif self.listwrap_mode == 1: self.curr_img_in_list = 0 else: if self.fullscreen_mode == True: self.change_cursor(None... | def next_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
except: | except: | def next_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.set_go_navigation_sensitivities() if self.slideshow_mode == True: if self.curr_slideshow_random == True: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.random_img_in_list, "ss") else: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]... | self.set_go_navigation_sensitivities() if self.slideshow_mode == True: if self.curr_slideshow_random == True: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.random_img_in_list, "ss") else: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]... | def next_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def random_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | def random_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | def random_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if self.randomlist == []: self.reinitialize_randomlist() else: | if self.randomlist == []: self.reinitialize_randomlist() else: | def random_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
for item in self.randomlist: if item == False: all_items_are_true = False if all_items_are_true == True: if self.slideshow_mode == False or (self.slideshow_mode == True and self.listwrap_mode == 1): self.reinitialize_randomlist() else: if self.listwrap_mode == 0: self.toggle_slideshow(None) return elif self.listwrap_mo... | for item in self.randomlist: if item == False: all_items_are_true = False if all_items_are_true == True: if self.slideshow_mode == False or (self.slideshow_mode == True and self.listwrap_mode == 1): self.reinitialize_randomlist() else: if self.listwrap_mode == 0: self.toggle_slideshow(None) return elif self.listwrap_mo... | def random_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
while self.randomlist[j] == True: j = random.randint(0, len(self.image_list)-1) self.curr_img_in_list = j self.randomlist[j] = True self.currimg_name = str(self.image_list[self.curr_img_in_list]) if self.fullscreen_mode == False and (self.slideshow_mode == False or (self.slideshow_mode == True and action != "ss")): sel... | while self.randomlist[j] == True: j = random.randint(0, len(self.image_list)-1) self.curr_img_in_list = j self.randomlist[j] = True self.currimg_name = str(self.image_list[self.curr_img_in_list]) if self.fullscreen_mode == False and (self.slideshow_mode == False or (self.slideshow_mode == True and action != "ss")): sel... | def random_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def first_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != 0: | def first_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != 0: | def first_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != 0: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.randomlist = [] self.curr_img_in_list = 0 self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration() try: self.load_new_image(False, False, True, False) except: self.image_load_failed(True) self.set_go_navigation_sensitivities() if self.slideshow_mode == True: if self.curr_slideshow_random == True: sel... | self.randomlist = [] self.curr_img_in_list = 0 self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration() try: self.load_new_image(False, False, True, False) except: self.image_load_failed(True) self.set_go_navigation_sensitivities() if self.slideshow_mode == True: if self.curr_slideshow_random == True: sel... | def first_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != 0: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def last_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != len(self.image_list)-1: | def last_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != len(self.image_list)-1: | def last_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != len(self.image_list)-1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.randomlist = [] self.curr_img_in_list = len(self.image_list)-1 self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration() try: self.load_new_image(False, False, True, False) except: self.image_load_failed(True) self.set_go_navigation_sensitivities() if self.slideshow_mode == True: if self.curr_slidesho... | self.randomlist = [] self.curr_img_in_list = len(self.image_list)-1 self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration() try: self.load_new_image(False, False, True, False) except: self.image_load_failed(True) self.set_go_navigation_sensitivities() if self.slideshow_mode == True: if self.curr_slidesho... | def last_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != len(self.image_list)-1: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def set_go_navigation_sensitivities(self): if self.image_loaded == False or len(self.image_list) == 1: self.set_previous_image_sensitivities(False) self.set_first_image_sensitivities(False) self.set_next_image_sensitivities(False) self.set_last_image_sensitivities(False) elif self.curr_img_in_list == 0: if self.listwra... | def set_go_navigation_sensitivities(self): if self.image_loaded == False or len(self.image_list) == 1: self.set_previous_image_sensitivities(False) self.set_first_image_sensitivities(False) self.set_next_image_sensitivities(False) self.set_last_image_sensitivities(False) elif self.curr_img_in_list == 0: if self.listwra... | def set_go_navigation_sensitivities(self): if self.image_loaded == False or len(self.image_list) == 1: self.set_previous_image_sensitivities(False) self.set_first_image_sensitivities(False) self.set_next_image_sensitivities(False) self.set_last_image_sensitivities(False) elif self.curr_img_in_list == 0: if self.listwra... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if self.fullscreen_mode == False: self.change_cursor(None) | if self.fullscreen_mode == False: self.change_cursor(None) | def image_load_failed(self, reset_cursor): self.currimg_name = str(self.image_list[self.curr_img_in_list]) if self.verbose == True and self.currimg_name != "": print _("Loading:"), self.currimg_name self.set_window_title() self.put_error_image_to_window() self.image_loaded = False | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
print _("Loading:"), self.currimg_name | print _("Loading:"), self.currimg_name | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.currimg_is_animation = False | self.currimg_is_animation = False | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_to_fit_or_1_to_1(None, False) | self.zoom_to_fit_or_1_to_1(None, False) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_to_fit_window(None, False) | self.zoom_to_fit_window(None, False) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_1_to_1(None, False) | self.zoom_1_to_1(None, False) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if self.last_mode == self.open_mode_smart: | if self.last_mode == self.open_mode_smart: | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_to_fit_window(None, False) | self.zoom_to_fit_window(None, False) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_1_to_1(None, False) | self.zoom_1_to_1(None, False) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.currimg_is_animation = True | self.currimg_is_animation = True | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if self.fullscreen_mode == False: self.change_cursor(None) | if self.fullscreen_mode == False: self.change_cursor(None) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_to_fit_or_1_to_1(None, True) | self.zoom_to_fit_or_1_to_1(None, True) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_to_fit_window(None, True) | self.zoom_to_fit_window(None, True) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_1_to_1(None, True) | self.zoom_1_to_1(None, True) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if self.last_mode == self.open_mode_smart: | if self.last_mode == self.open_mode_smart: | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_to_fit_window(None, True) | self.zoom_to_fit_window(None, True) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.zoom_1_to_1(None, True) | self.zoom_1_to_1(None, True) | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def change_cursor(self, type): for i in gtk.gdk.window_get_toplevels(): if i.get_window_type() != gtk.gdk.WINDOW_TEMP and i.get_window_type() != gtk.gdk.WINDOW_CHILD: i.set_cursor(type) self.layout.window.set_cursor(type) def expand_filelist_and_load_image(self, inputlist): | def change_cursor(self, type): for i in gtk.gdk.window_get_toplevels(): if i.get_window_type() != gtk.gdk.WINDOW_TEMP and i.get_window_type() != gtk.gdk.WINDOW_CHILD: i.set_cursor(type) self.layout.window.set_cursor(type) def expand_filelist_and_load_image(self, inputlist): | def load_new_image(self, use_preloadimg, generate_preloadimg_only, reset_cursor, use_existing_preloadimg): if generate_preloadimg_only == False: # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg == True and self.preloadimg_pixbuf_original != None: self.currimg_name... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py | ||
gtk.main_iteration() | gtk.main_iteration() | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
first_image_found = False | first_image_found = False | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.randomlist = [] folderlist = [] | self.randomlist = [] folderlist = [] | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py | ||
def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py | ||
inputlist[itemnum] = inputlist[itemnum][7:] elif inputlist[itemnum].startswith('file:'): inputlist[itemnum] = inputlist[itemnum][5:] | inputlist[itemnum] = inputlist[itemnum][7:] elif inputlist[itemnum].startswith('file:'): inputlist[itemnum] = inputlist[itemnum][5:] | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
inputlist[itemnum] = inputlist[itemnum][:(len(inputlist[itemnum])-1)] inputlist[itemnum] = os.path.abspath(inputlist[itemnum]) | inputlist[itemnum] = inputlist[itemnum][:(len(inputlist[itemnum])-1)] inputlist[itemnum] = os.path.abspath(inputlist[itemnum]) | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if os.path.isfile(item): | if os.path.isfile(item): | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
print _("Found:"), item_fullpath, "[" + str(self.images_found) + "]" | print _("Found:"), item_fullpath, "[" + str(self.images_found) + "]" | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if self.verbose == True and self.currimg_name != "": print _("Loading:"), self.currimg_name | if self.verbose == True and self.currimg_name != "": print _("Loading:"), self.currimg_name | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
except: | except: | def expand_filelist_and_load_image(self, inputlist): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.image_list = list(set(self.image_list)) | self.image_list = list(set(self.image_list)) | def do_image_list_stuff(self, first_image, second_image): if len(self.image_list) > 0: self.set_go_navigation_sensitivities() self.image_list = list(set(self.image_list)) self.image_list.sort(locale.strcoll) for itemnum in range(len(self.image_list)): if first_image == self.image_list[itemnum]: temp = self.image_list[0... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): | if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if self.valid_image(item_fullpath2) == True: | if self.valid_image(item_fullpath2) == True: | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.stop_now = True | self.stop_now = True | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
print _("Found:"), item_fullpath2, "[" + str(self.images_found) + "]" | print _("Found:"), item_fullpath2, "[" + str(self.images_found) + "]" | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
folderlist.append(item_fullpath2) | folderlist.append(item_fullpath2) | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
filelist.sort(locale.strcoll) | filelist.sort(locale.strcoll) | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
if len(folderlist) > 0: folderlist.sort(locale.strcoll) | if len(folderlist) > 0: folderlist.sort(locale.strcoll) | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = [] | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def valid_image(self, file): test = gtk.gdk.pixbuf_get_file_info(file) if test == None: return False elif test[0]['name'] == "wbmp": | def valid_image(self, file): test = gtk.gdk.pixbuf_get_file_info(file) if test == None: return False elif test[0]['name'] == "wbmp": | def valid_image(self, file): test = gtk.gdk.pixbuf_get_file_info(file) if test == None: return False elif test[0]['name'] == "wbmp": # some regular files are thought to be wbmp for whatever reason, | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
test2 = gtk.gdk.pixbuf_new_from_file(file) return True except: return False else: return True def image_flip(self, old_pix, vertical): width = old_pix.get_width() height = old_pix.get_height() d = None if vertical == True: d, w, h, rws = imgfuncs.vert(old_pix.get_pixels(), width, height, old_pix.get_rowstride(), old_p... | test2 = gtk.gdk.pixbuf_new_from_file(file) return True except: return False else: return True def image_flip(self, old_pix, vertical): width = old_pix.get_width() height = old_pix.get_height() d = None if vertical == True: d, w, h, rws = imgfuncs.vert(old_pix.get_pixels(), width, height, old_pix.get_rowstride(), old_p... | def valid_image(self, file): test = gtk.gdk.pixbuf_get_file_info(file) if test == None: return False elif test[0]['name'] == "wbmp": # some regular files are thought to be wbmp for whatever reason, | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.slideshow_mode = True self.set_window_title() self.set_slideshow_sensitivities() if self.curr_slideshow_random == False: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.next_img_in_list, "ss") else: self.reinitialize_randomlist() self.timer_delay = gobject.timeout_add... | self.slideshow_mode = True self.set_window_title() self.set_slideshow_sensitivities() if self.curr_slideshow_random == False: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.next_img_in_list, "ss") else: self.reinitialize_randomlist() self.timer_delay = gobject.timeout_add... | def toggle_slideshow(self, action): if len(self.image_list) > 1: if self.slideshow_mode == False: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
else: self.slideshow_mode = False gobject.source_remove(self.timer_delay) self.set_window_title() self.set_slideshow_sensitivities() self.set_zoom_sensitivities() self.ss_stop.hide() self.ss_start.show() def set_window_title(self): if len(self.image_list) == 0: self.window.set_title("Mirage") else: if self.slideshow_m... | else: self.slideshow_mode = False gobject.source_remove(self.timer_delay) self.set_window_title() self.set_slideshow_sensitivities() self.set_zoom_sensitivities() self.ss_stop.hide() self.ss_start.show() def set_window_title(self): if len(self.image_list) == 0: self.window.set_title("Mirage") else: if self.slideshow_m... | def toggle_slideshow(self, action): if len(self.image_list) > 1: if self.slideshow_mode == False: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
gtk.main_iteration() ss_winheight = self.slideshow_window.allocation.height ss_win2width = self.slideshow_window2.allocation.width winheight = self.window.allocation.height winwidth = self.window.allocation.width y = -3.0 self.controls_moving = True while y < ss_winheight: self.slideshow_window.move(2, int(winheight-y... | gtk.main_iteration() ss_winheight = self.slideshow_window.allocation.height ss_win2width = self.slideshow_window2.allocation.width winheight = self.window.allocation.height winwidth = self.window.allocation.width y = -3.0 self.controls_moving = True while y < ss_winheight: self.slideshow_window.move(2, int(winheight-y... | def slideshow_controls_show(self): if self.slideshow_controls_visible == False and self.controls_moving == False: self.slideshow_controls_visible = True self.ss_delaycombo.set_active(self.curr_slideshow_delay) self.ss_randomize.set_active(self.curr_slideshow_random) | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
gtk.main_iteration() self.controls_moving = False def slideshow_controls_hide(self): if self.slideshow_controls_visible == True and self.controls_moving == False: self.slideshow_controls_visible = False ss_winheight = self.slideshow_window.allocation.height ss_win2width = self.slideshow_window2.allocation.width winhe... | gtk.main_iteration() self.controls_moving = False def slideshow_controls_hide(self): if self.slideshow_controls_visible == True and self.controls_moving == False: self.slideshow_controls_visible = False ss_winheight = self.slideshow_window.allocation.height ss_win2width = self.slideshow_window2.allocation.width winhe... | def slideshow_controls_show(self): if self.slideshow_controls_visible == False and self.controls_moving == False: self.slideshow_controls_visible = True self.ss_delaycombo.set_active(self.curr_slideshow_delay) self.ss_randomize.set_active(self.curr_slideshow_random) | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
gtk.main_iteration() self.controls_moving = False def load_editor(self, action): if self.UIManager.get_widget('/MainMenu/EditMenu/Open in Editor').get_property('sensitive') == True: test = os.spawnlp(os.P_WAIT, self.editor, self.editor, self.currimg_name) if test == 127: error_dialog = gtk.MessageDialog(self.window, g... | gtk.main_iteration() self.controls_moving = False def load_editor(self, action): if self.UIManager.get_widget('/MainMenu/EditMenu/Open in Editor').get_property('sensitive') == True: test = os.spawnlp(os.P_WAIT, self.editor, self.editor, self.currimg_name) if test == 127: error_dialog = gtk.MessageDialog(self.window, g... | def slideshow_controls_hide(self): if self.slideshow_controls_visible == True and self.controls_moving == False: self.slideshow_controls_visible = False ss_winheight = self.slideshow_window.allocation.height ss_win2width = self.slideshow_window2.allocation.width winheight = self.window.allocation.height winwidth = sel... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
def main(self): gtk.main() | def main(self): gtk.main() | def main(self): gtk.main() | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
base = Base() base.main() | base = Base() base.main() | def main(self): gtk.main() | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py |
self.ss_delaycombo.append_text(str(self.delayoptions[0]) + " seconds") self.ss_delaycombo.append_text(str(self.delayoptions[1]) + " seconds") self.ss_delaycombo.append_text(str(self.delayoptions[2]) + " seconds") self.ss_delaycombo.append_text(str(self.delayoptions[3]) + " seconds") self.ss_delaycombo.append_text(str(s... | self.ss_delaycombo.append_text(str(self.delayoptions[0]) + ' ' + _('seconds')) self.ss_delaycombo.append_text(str(self.delayoptions[1]) + ' ' + _('seconds')) self.ss_delaycombo.append_text(str(self.delayoptions[2]) + ' ' + _('seconds')) self.ss_delaycombo.append_text(str(self.delayoptions[3]) + ' ' + _('seconds')) self... | def __init__(self): | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
bglabel.set_markup("<b>_('Interface')</b>") | bglabel.set_markup('<b>' + _('Interface') + '</b>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
colortext = gtk.Label("_('Background Color'): ") | colortext = gtk.Label(_('Background Color') + ': ') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
zoomlabel.set_markup("<b>_('Zoom Quality')</b>") | zoomlabel.set_markup('<b>' + _('Zoom Quality') + '</b>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
zoom_label1.set_markup("<i>_('Fastest')</i>") | zoom_label1.set_markup('<i>' + _('Fastest') + '</i>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
zoom_label2.set_markup("<i>_('Best')</i>") | zoom_label2.set_markup('<i>' + _('Best') + '</i>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
openlabel.set_markup("<b>_('Open Behavior')</b>") | openlabel.set_markup('<b>' + _('Open Behavior') + '</b>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
hbox_openmode.pack_start(gtk.Label("_('Open new image in'):"), False, False, 0) | hbox_openmode.pack_start(gtk.Label(_('Open new image in') + ':'), False, False, 0) | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
navlabel.set_markup("<b>_('Navigation')</b>") | navlabel.set_markup('<b>' + _('Navigation') + '</b>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
slideshowlabel.set_markup("<b>_('Slideshow')</b>") | slideshowlabel.set_markup('<b>' + _('Slideshow') + '</b>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
delaycombo.append_text(str(self.delayoptions[0]) + " _('seconds')") delaycombo.append_text(str(self.delayoptions[1]) + " _('seconds')") delaycombo.append_text(str(self.delayoptions[2]) + " _('seconds')") delaycombo.append_text(str(self.delayoptions[3]) + " _('seconds')") delaycombo.append_text(str(self.delayoptions[4])... | delaycombo.append_text(str(self.delayoptions[0]) + ' ' + _('seconds')) delaycombo.append_text(str(self.delayoptions[1]) + ' ' + _('seconds')) delaycombo.append_text(str(self.delayoptions[2]) + ' ' + _('seconds')) delaycombo.append_text(str(self.delayoptions[3]) + ' ' + _('seconds')) delaycombo.append_text(str(self.dela... | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
editorlabel.set_markup("<b>_('External Image Editor')</b>") | editorlabel.set_markup('<b>' + _('External Image Editor') + '</b>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + " _('of') " + str(len(self.image_list)) + "] " + os.path.basename(self.userimage) + " - _('Slideshow Mode')") | self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] " + os.path.basename(self.userimage) + ' - ' + _('Slideshow Mode')) | def set_window_title(self): if len(self.image_list) == 0: self.window.set_title("Mirage") else: if self.slideshow_mode == True: self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + " _('of') " + str(len(self.image_list)) + "] " + os.path.basename(self.userimage) + " - _('Slideshow Mode')") else: self.win... | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + " _('of') " + str(len(self.image_list)) + "] " + os.path.basename(self.userimage)) | self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] " + os.path.basename(self.userimage)) | def set_window_title(self): if len(self.image_list) == 0: self.window.set_title("Mirage") else: if self.slideshow_mode == True: self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + " _('of') " + str(len(self.image_list)) + "] " + os.path.basename(self.userimage) + " - _('Slideshow Mode')") else: self.win... | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
error_dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, "_('Unable to launch') \"" + self.editor + "\". _('Please specify a valid application from Edit > Preferences.')") | error_dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, _('Unable to launch') + ' \"' + self.editor + '\". ' + _('Please specify a valid application from Edit > Preferences.')) | def load_editor(self, action): if self.UIManager.get_widget('/MainMenu/EditMenu/Open in Editor').get_property('sensitive') == True: test = os.spawnlp(os.P_WAIT, self.editor, self.editor, self.userimage) if test == 127: error_dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOS... | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py |
if self.show_slideshow_controls == False: | if self.show_slideshow_controls == False and self.controls_moving == False: | def slideshow_controls_show(self): if self.show_slideshow_controls == False: self.show_slideshow_controls = True self.slideshow_controls = gtk.HBox(False, 0) back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_te... | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py |
self.slideshow_controls = gtk.HBox(False, 0) back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_text('') back.set_property('can-focus', False) back.connect('clicked', self.prev_img_in_list) self.ss_start = gtk.B... | def slideshow_controls_show(self): if self.show_slideshow_controls == False: self.show_slideshow_controls = True self.slideshow_controls = gtk.HBox(False, 0) back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_te... | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py | |
self.slideshow_controls.pack_start(back, False, False, 0) self.slideshow_controls.pack_start(self.ss_start, False, False, 0) self.slideshow_controls.pack_start(forward, False, False, 0) self.layout.add(self.slideshow_controls) x = 0 | def slideshow_controls_show(self): if self.show_slideshow_controls == False: self.show_slideshow_controls = True self.slideshow_controls = gtk.HBox(False, 0) back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_te... | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py | |
self.layout.move(self.slideshow_controls, x, y_min) self.slideshow_controls.show_all() | self.layout.move(self.slideshow_controls, 0, y_min) | def slideshow_controls_show(self): if self.show_slideshow_controls == False: self.show_slideshow_controls = True self.slideshow_controls = gtk.HBox(False, 0) back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_te... | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py |
while y > y_max: | while y > y_max and self.show_slideshow_controls == True: | def slideshow_controls_show(self): if self.show_slideshow_controls == False: self.show_slideshow_controls = True self.slideshow_controls = gtk.HBox(False, 0) back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_te... | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py |
self.layout.move(self.slideshow_controls, x, y) | self.layout.move(self.slideshow_controls, 5, y) | def slideshow_controls_show(self): if self.show_slideshow_controls == False: self.show_slideshow_controls = True self.slideshow_controls = gtk.HBox(False, 0) back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_te... | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py |
gtk.main_iteration() | gtk.main_iteration() self.controls_moving = False | def slideshow_controls_show(self): if self.show_slideshow_controls == False: self.show_slideshow_controls = True self.slideshow_controls = gtk.HBox(False, 0) back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_te... | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py |
if self.show_slideshow_controls == True: | if self.show_slideshow_controls == True and self.controls_moving == False: | def slideshow_controls_hide(self): if self.show_slideshow_controls == True: self.show_slideshow_controls = False | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py |
x = 0 | def slideshow_controls_hide(self): if self.show_slideshow_controls == True: self.show_slideshow_controls = False | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py | |
self.controls_moving = True | def slideshow_controls_hide(self): if self.show_slideshow_controls == True: self.show_slideshow_controls = False | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py | |
while y < y_min: | while y < y_min and self.show_slideshow_controls == False: | def slideshow_controls_hide(self): if self.show_slideshow_controls == True: self.show_slideshow_controls = False | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py |
self.layout.move(self.slideshow_controls, x, y) | self.layout.move(self.slideshow_controls, 5, y) | def slideshow_controls_hide(self): if self.show_slideshow_controls == True: self.show_slideshow_controls = False | 3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py |
self.coords = [x.get_value(), y.get_value(), width.get_value(), height.get_value()] self.crop_rectangle[0] = int(float(self.coords[0])/self.currimg_pixbuf_original.get_width()*image_width) self.crop_rectangle[1] = int(float(self.coords[1])/self.currimg_pixbuf_original.get_height()*image_height) x2 = int(float(self.coor... | self.coords = [int(x.get_value()), int(y.get_value()), int(width.get_value()), int(height.get_value())] self.crop_rectangle[0] = int(round(float(self.coords[0])/self.currimg_pixbuf_original.get_width()*image_width, 0)) self.crop_rectangle[1] = int(round(float(self.coords[1])/self.currimg_pixbuf_original.get_height()*im... | def crop_value_changed(self, currspinbox, x, y, width, height, width_adj, height_adj, image_width, image_height, image, type): if type == 0: # X if x.get_value() + width.get_value() > self.currimg_pixbuf_original.get_width(): width.handler_block(self.width_changed) width.set_value(self.currimg_pixbuf_original.get_wid... | 4c91abfc2004216bd180bde249721d21d4032f62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/4c91abfc2004216bd180bde249721d21d4032f62/mirage.py |
self.coords[0] = int(float(self.rect[0])/image_width*self.currimg_pixbuf_original.get_width()) self.coords[1] = int(float(self.rect[1])/image_height*self.currimg_pixbuf_original.get_height()) self.coords[2] = int(float(self.rect[2])/image_width*self.currimg_pixbuf_original.get_width()) self.coords[3] = int(float(self.r... | self.coords[0] = int(round(float(self.rect[0])/image_width*self.currimg_pixbuf_original.get_width(), 0)) self.coords[1] = int(round(float(self.rect[1])/image_height*self.currimg_pixbuf_original.get_height(), 0)) self.coords[2] = int(round(float(self.rect[2])/image_width*self.currimg_pixbuf_original.get_width(), 0)) sel... | def crop_image_mouse_moved(self, widget, event, image, x2, y2, x, y, width, height, image_width, image_height, width_adj, height_adj): if event != None: x2, y2, state = event.window.get_pointer() if self.drawing_crop_rectangle == True: if self.crop_rectangle != None or self.update_rectangle == True: gc = image.window.n... | 4c91abfc2004216bd180bde249721d21d4032f62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/4c91abfc2004216bd180bde249721d21d4032f62/mirage.py |
def __init__(self): | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py | ||
self.load_new_image(False, False, False, True, False) | self.load_new_image2(False, False, True, False) | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
self.load_new_image(False, False, False, True, False) | self.load_new_image2(False, False, True, False) | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
self.preloadimg_prev_pixbuf_original = None | self.preloadimg_prev_in_list = -1 | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
self.preloadimg_prev_pixbuf_original = None | self.preloadimg_prev_in_list = -1 | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
self.preloadimg_prev_pixbuf_original = None | self.preloadimg_prev_in_list = -1 | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
self.preloadimg_next_pixbuf_original = None | self.preloadimg_next_in_list = -1 | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
self.preloadimg_next_pixbuf_original = None | self.preloadimg_next_in_list = -1 | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
self.preloadimg_next_pixbuf_original = None | self.preloadimg_next_in_list = -1 | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
print cmdstr | def parse_action_command2(self, command, imagename): # First, replace any property keywords with their flags: if "%F" in command: command = command.replace("%F", imagename) if "%N" in command: command = command.replace("%N", os.path.splitext(os.path.basename(imagename))[0]) if "%P" in command: command = command.replace... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py | |
elif commands[i] == "[NEXT]": | if commands[i] == "[NEXT]": | def parse_action_command2(self, command, imagename): # First, replace any property keywords with their flags: if "%F" in command: command = command.replace("%F", imagename) if "%N" in command: command = command.replace("%N", os.path.splitext(os.path.basename(imagename))[0]) if "%P" in command: command = command.replace... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.