bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def set_image_sensitivities(self, enable): self.set_zoom_in_sensitivities(enable) self.set_zoom_out_sensitivities(enable) self.UIManager.get_widget('/MainMenu/ViewMenu/1:1').set_sensitive(enable) self.UIManager.get_widget('/MainMenu/ViewMenu/Fit').set_sensitive(enable) self.UIManager.get_widget('/MainMenu/EditMenu/Rota... | def set_image_sensitivities(self, enable): self.set_zoom_in_sensitivities(enable) self.set_zoom_out_sensitivities(enable) self.UIManager.get_widget('/MainMenu/ViewMenu/1:1').set_sensitive(enable) self.UIManager.get_widget('/MainMenu/ViewMenu/Fit').set_sensitive(enable) self.UIManager.get_widget('/MainMenu/EditMenu/Rota... | 37,000 |
def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit: if self.image_loaded == True: if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.last_image_action_was_fit == True: if self.last_image_action_was_smart_fit ... | def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit: if self.image_loaded == True: if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.last_image_action_was_fit == True: if self.last_image_action_was_smart_fit ... | 37,001 |
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl... | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl... | 37,002 |
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl... | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl... | 37,003 |
def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | 37,004 |
def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | 37,005 |
def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | 37,006 |
def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | 37,007 |
def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.confirm_delete == True: permlabel = gtk.Label(_('Are you sure you wish t... | 37,008 |
def zoom_to_fit_window(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_pixbuf_original != None: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixbuf_... | def zoom_to_fit_window(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_in_list != -1: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixbuf_original.g... | 37,009 |
def zoom_to_fit_window(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_pixbuf_original != None: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixbuf_... | def zoom_to_fit_window(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_pixbuf_original != None: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixbuf_... | 37,010 |
def zoom_to_fit_or_1_to_1(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_pixbuf_original != None: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixb... | def zoom_to_fit_or_1_to_1(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_in_list != -1: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixbuf_origina... | 37,011 |
def zoom_to_fit_or_1_to_1(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_pixbuf_original != None: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixb... | def zoom_to_fit_or_1_to_1(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_pixbuf_original != None: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixb... | 37,012 |
def crop_image(self, action): dialog = gtk.Dialog(_("Crop Image"), self.window, gtk.DIALOG_MODAL, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT)) cropbutton = dialog.add_button(_("Crop"), gtk.RESPONSE_ACCEPT) cropimage = gtk.Image() cropimage.set_from_stock(gtk.STOCK_OK, gtk.ICON_SIZE_BUTTON) cropbutton.set_image(cropimage) i... | def crop_image(self, action): dialog = gtk.Dialog(_("Crop Image"), self.window, gtk.DIALOG_MODAL, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT)) cropbutton = dialog.add_button(_("Crop"), gtk.RESPONSE_ACCEPT) cropimage = gtk.Image() cropimage.set_from_stock(gtk.STOCK_OK, gtk.ICON_SIZE_BUTTON) cropbutton.set_image(cropimage) i... | 37,013 |
def resize_image(self, action): dialog = gtk.Dialog(_("Resize Image"), self.window, gtk.DIALOG_MODAL, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT)) resizebutton = dialog.add_button(_("Resize"), gtk.RESPONSE_ACCEPT) resizeimage = gtk.Image() resizeimage.set_from_stock(gtk.STOCK_OK, gtk.ICON_SIZE_BUTTON) resizebutton.set_imag... | def resize_image(self, action): dialog = gtk.Dialog(_("Resize Image"), self.window, gtk.DIALOG_MODAL, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT)) resizebutton = dialog.add_button(_("Resize"), gtk.RESPONSE_ACCEPT) resizeimage = gtk.Image() resizeimage.set_from_stock(gtk.STOCK_OK, gtk.ICON_SIZE_BUTTON) resizebutton.set_imag... | 37,014 |
def goto_prev_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | def goto_prev_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: self.load_new_image_stop_now() cancel = self.autosave_image() if cancel == True: return self.randomlist = [] if self.curr_img_in_list > 0: self.curr_img_in_list -= 1... | 37,015 |
def goto_prev_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | def goto_prev_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | 37,016 |
def goto_prev_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | def goto_prev_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | 37,017 |
def goto_next_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | def goto_next_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: self.load_new_image_stop_now() cancel = self.autosave_image() if cancel == True: return self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: sel... | 37,018 |
def goto_next_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | def goto_next_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | 37,019 |
def goto_next_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | def goto_next_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu... | 37,020 |
def goto_random_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: re... | def goto_random_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: self.load_new_image_stop_now() cancel = self.autosave_image() if cancel == True: return if self.randomlist == []: self.reinitialize_randomlist() else: # check if w... | 37,021 |
def goto_random_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: re... | def goto_random_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: re... | 37,022 |
def goto_random_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: re... | def goto_random_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: re... | 37,023 |
def goto_first_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave... | def goto_first_image(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: self.load_new_image_stop_now() cancel = self.autosave_image() if cancel == True: return self.randomlist = [] self.curr_img_in_list = ... | 37,024 |
def goto_first_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave... | def goto_first_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave... | 37,025 |
def goto_first_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave... | def goto_first_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave... | 37,026 |
def goto_last_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass ca... | def goto_last_image(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: self.load_new_image_stop_now() cancel = self.autosave_image() if cancel == True: return self.randomlist = [] self... | 37,027 |
def goto_last_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass ca... | def goto_last_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass ca... | 37,028 |
def goto_last_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass ca... | def goto_last_image(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: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass ca... | 37,029 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,030 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,031 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,032 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,033 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,034 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,035 |
def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: next_index = self.curr_img_in_list + 1 if next_index > len(self.image_list)-1: if self.listwrap_mode == 0: self.preloadimg_next_in_list == -1 return else: next_index = 0... | 37,036 |
def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | 37,037 |
def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | 37,038 |
def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | 37,039 |
def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: prev_index = self.curr_img_in_list - 1 if prev_index < 0: if self.listwrap_mode == 0: self.preloadimg_prev_in_list == -1 return else: prev_index = len(self.image_list)-1... | 37,040 |
def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | 37,041 |
def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | 37,042 |
def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | 37,043 |
def expand_filelist_and_load_image(self, inputlist): # Takes the current list (i.e. ["pic.jpg", "pic2.gif", "../images"]) and # expands it into a list of all pictures found self.images_found = 0 self.stop_now = True # Make sure that any previous search process is stopped self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)... | def expand_filelist_and_load_image(self, inputlist): # Takes the current list (i.e. ["pic.jpg", "pic2.gif", "../images"]) and # expands it into a list of all pictures found self.images_found = 0 self.stop_now = True # Make sure that any previous search process is stopped self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)... | 37,044 |
def expand_filelist_and_load_image(self, inputlist): # Takes the current list (i.e. ["pic.jpg", "pic2.gif", "../images"]) and # expands it into a list of all pictures found self.images_found = 0 self.stop_now = True # Make sure that any previous search process is stopped self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)... | def expand_filelist_and_load_image(self, inputlist): # Takes the current list (i.e. ["pic.jpg", "pic2.gif", "../images"]) and # expands it into a list of all pictures found self.images_found = 0 self.stop_now = True # Make sure that any previous search process is stopped self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)... | 37,045 |
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_... | def expand_directory(self, item, stop_when_second_image_found, go_buttons_enabled, update_window_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.c... | 37,046 |
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_... | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_... | 37,047 |
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_... | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_... | 37,048 |
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_... | def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_... | 37,049 |
def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit: if self.image_loaded == True: if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.last_image_action_was_fit == True and self.zoomratio != 1: self.zoom_to_fit... | def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit: if self.image_loaded == True: if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.last_image_action_was_fit == True: self.zoom_to_fit_window(None) else: self... | 37,050 |
def toggle_fullscreen(self, action): if self.fullscreen_mode == True: self.fullscreen_mode = False self.UIManager.get_widget('/Popup/FM4').hide() self.UIManager.get_widget('/Popup/Exit Full Screen').hide() self.window.unfullscreen() if self.toolbar_show == True: self.toolbar.show() self.menubar.show() if self.statusbar... | def toggle_fullscreen(self, action): if self.fullscreen_mode == True: self.fullscreen_mode = False self.UIManager.get_widget('/Popup/FM4').hide() self.UIManager.get_widget('/Popup/Exit Full Screen').hide() if self.toolbar_show == True: self.toolbar.show() self.menubar.show() if self.statusbar_show == True: self.statusb... | 37,051 |
def image_flip_vert(self, action): if self.userimage != "": self.last_image_action_was_fit = False if self.location == 0: self.location = 3 elif self.location == 1: self.location = 2 elif self.location == 2: self.location = 1 elif self.location == 3: self.location = 0 self.currimg = self.image_flip(self.currimg, True) ... | def image_flip_vert(self, action): if self.userimage != "": if self.location == 0: self.location = 3 elif self.location == 1: self.location = 2 elif self.location == 2: self.location = 1 elif self.location == 3: self.location = 0 self.currimg = self.image_flip(self.currimg, True) self.imageview.set_from_pixbuf(self.cur... | 37,052 |
def image_flip_horiz(self, action): if self.userimage != "": self.last_image_action_was_fit = False if self.location == 0: self.location = 1 elif self.location == 1: self.location = 0 elif self.location == 2: self.location = 3 elif self.location == 3: self.location = 2 self.currimg = self.image_flip(self.currimg, False... | def image_flip_horiz(self, action): if self.userimage != "": if self.location == 0: self.location = 1 elif self.location == 1: self.location = 0 elif self.location == 2: self.location = 3 elif self.location == 3: self.location = 2 self.currimg = self.image_flip(self.currimg, False) self.imageview.set_from_pixbuf(self.c... | 37,053 |
def next_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: self.curr_img_in_list += 1 else: if self.listwrap == True: self.curr_img_in_list = 0 else: return if self.fullscreen_mode == False: self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))... | def next_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: self.curr_img_in_list += 1 else: if self.listwrap == True: self.curr_img_in_list = 0 else: if self.fullscreen_mode == True: self.toggle_fullscreen(None) return if self.fullscreen_mo... | 37,054 |
def load_new_image(self): self.currimg = None self.userimage = str(self.image_list[self.curr_img_in_list]) if self.verbose == True and self.userimage != "": print "Loading:", self.userimage self.originalimg = gtk.gdk.pixbuf_new_from_file(self.userimage) self.first_image_load = True self.location = 0 self.orientation = ... | def load_new_image(self): self.currimg = None self.userimage = str(self.image_list[self.curr_img_in_list]) if self.verbose == True and self.userimage != "": print "Loading:", self.userimage self.originalimg = gtk.gdk.pixbuf_new_from_file(self.userimage) self.first_image_load = True self.location = 0 self.orientation = ... | 37,055 |
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl... | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl... | 37,056 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,057 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,058 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,059 |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 37,060 |
def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | 37,061 |
def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | 37,062 |
def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | 37,063 |
def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | def preload_next_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list + 1 <= len(self.image_list)-1: temp_name = str(self.image_list[self.curr_img_in_list+1]) elif self.listwrap_mode > 0: temp_name = str(self.image... | 37,064 |
def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | 37,065 |
def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | 37,066 |
def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | 37,067 |
def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | def preload_prev_image(self, use_existing_image): try: if self.preloading_images == True and len(self.image_list) > 1: if use_existing_image == False: if self.curr_img_in_list - 1 >= 0: temp_name = str(self.image_list[self.curr_img_in_list-1]) elif self.listwrap_mode > 0: temp_name = str(self.image_list[len(self.image_... | 37,068 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,069 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,070 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,071 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,072 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,073 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,074 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,075 |
def topwindow_keypress(self, widget, event): if event.state != gtk.gdk.SHIFT_MASK and event.state != gtk.gdk.CONTROL_MASK and event.state != gtk.gdk.MOD1_MASK and event.state != gtk.gdk.CONTROL_MASK | gtk.gdk.MOD2_MASK: if event.keyval == 65361: # Left arrow self.prev_img_in_list(None) elif event.keyval == 65363 or ... | def topwindow_keypress(self, widget, event): if event.state != gtk.gdk.SHIFT_MASK and event.state != gtk.gdk.CONTROL_MASK and event.state != gtk.gdk.MOD1_MASK and event.state != gtk.gdk.CONTROL_MASK | gtk.gdk.MOD2_MASK: if event.keyval == 65361: # Left arrow self.prev_img_in_list(None) elif event.keyval == 65363 or ... | 37,076 |
def toggle_fullscreen(self, action): if self.fullscreen_mode == True: self.fullscreen_mode = False self.UIManager.get_widget('/Popup/FM3').hide() self.UIManager.get_widget('/Popup/Exit Full Screen').hide() if self.toolbar_show == True: self.toolbar.show() self.menubar.show() if self.statusbar_show == True: self.statusb... | def enter_fullscreen(self, action): if self.fullscreen_mode == False: self.fullscreen_mode = True self.UIManager.get_widget('/Popup/FM3').show() self.UIManager.get_widget('/Popup/Exit Full Screen').show() self.statusbar.hide() self.toolbar.hide() self.menubar.hide() self.window.fullscreen() self.timer_id = gobject.time... | 37,077 |
def toggle_fullscreen(self, action): if self.fullscreen_mode == True: self.fullscreen_mode = False self.UIManager.get_widget('/Popup/FM3').hide() self.UIManager.get_widget('/Popup/Exit Full Screen').hide() if self.toolbar_show == True: self.toolbar.show() self.menubar.show() if self.statusbar_show == True: self.statusb... | def toggle_fullscreen(self, action): if self.fullscreen_mode == True: self.fullscreen_mode = False self.UIManager.get_widget('/Popup/FM3').hide() self.UIManager.get_widget('/Popup/Exit Full Screen').hide() if self.toolbar_show == True: self.toolbar.show() self.menubar.show() if self.statusbar_show == True: self.statusb... | 37,078 |
def toggle_slideshow(self, action): if self.slideshow_mode == False: self.slideshow_mode = True self.set_window_title() self.set_slideshow_sensitivities() if self.slideshow_random == False: self.timer_delay = gobject.timeout_add(self.delayoptions[self.slideshow_delay]*1000, self.next_img_in_list, "ss") else: self.reini... | def toggle_slideshow(self, action): if len(self.image_list) > 1: if self.slideshow_mode == False: self.slideshow_mode = True self.set_window_title() self.set_slideshow_sensitivities() if self.slideshow_random == False: self.timer_delay = gobject.timeout_add(self.delayoptions[self.slideshow_delay]*1000, self.next_img_in... | 37,079 |
def toggle_slideshow(self, action): if self.slideshow_mode == False: self.slideshow_mode = True self.set_window_title() self.set_slideshow_sensitivities() if self.slideshow_random == False: self.timer_delay = gobject.timeout_add(self.delayoptions[self.slideshow_delay]*1000, self.next_img_in_list, "ss") else: self.reini... | def toggle_slideshow(self, action): if self.slideshow_mode == False: self.slideshow_mode = True self.set_window_title() self.set_slideshow_sensitivities() if self.slideshow_random == False: self.timer_delay = gobject.timeout_add(self.delayoptions[self.slideshow_delay]*1000, self.next_img_in_list, "ss") else: self.slide... | 37,080 |
def slideshow_controls_show(self): if self.show_slideshow_controls == False and self.controls_moving == False: self.show_slideshow_controls = True hbox_width = 3 * self.ss_start.size_request()[0] hbox_height = self.ss_start.size_request()[1] | def slideshow_controls_show(self): if self.show_slideshow_controls == False and self.controls_moving == False: self.show_slideshow_controls = True hbox_width = self.ss_start.size_request()[0]/2 hbox_height = self.ss_start.size_request()[1] | 37,081 |
def slideshow_controls_show(self): if self.show_slideshow_controls == False and self.controls_moving == False: self.show_slideshow_controls = True hbox_width = 3 * self.ss_start.size_request()[0] hbox_height = self.ss_start.size_request()[1] | def slideshow_controls_show(self): if self.show_slideshow_controls == False and self.controls_moving == False: self.show_slideshow_controls = True hbox_width = 3 * self.ss_start.size_request()[0] hbox_height = self.ss_start.size_request()[1] | 37,082 |
def slideshow_controls_show(self): if self.show_slideshow_controls == False and self.controls_moving == False: self.show_slideshow_controls = True hbox_width = 3 * self.ss_start.size_request()[0] hbox_height = self.ss_start.size_request()[1] | def slideshow_controls_show(self): if self.show_slideshow_controls == False and self.controls_moving == False: self.show_slideshow_controls = True hbox_width = 3 * self.ss_start.size_request()[0] hbox_height = self.ss_start.size_request()[1] | 37,083 |
def slideshow_controls_hide(self): if self.show_slideshow_controls == True and self.controls_moving == False: self.show_slideshow_controls = False | def slideshow_controls_hide(self): if self.show_slideshow_controls == True and self.controls_moving == False: self.show_slideshow_controls = False | 37,084 |
def slideshow_controls_hide(self): if self.show_slideshow_controls == True and self.controls_moving == False: self.show_slideshow_controls = False | def slideshow_controls_hide(self): if self.show_slideshow_controls == True and self.controls_moving == False: self.show_slideshow_controls = False | 37,085 |
def slideshow_controls_hide(self): if self.show_slideshow_controls == True and self.controls_moving == False: self.show_slideshow_controls = False | def slideshow_controls_hide(self): if self.show_slideshow_controls == True and self.controls_moving == False: self.show_slideshow_controls = False | 37,086 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,087 |
def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | def __init__(self): # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | 37,088 |
def save_settings(self): rect = self.window.get_allocation() conf = ConfigParser.ConfigParser() conf.add_section('window') conf.set('window', 'w', rect.width) conf.set('window', 'h', rect.height) conf.set('window', 'toolbar', self.toolbar_show) conf.set('window', 'statusbar', self.statusbar_show) conf.add_section('pref... | def save_settings(self): rect = self.window.get_allocation() conf = ConfigParser.ConfigParser() conf.add_section('window') conf.set('window', 'w', rect.width) conf.set('window', 'h', rect.height) conf.set('window', 'toolbar', self.toolbar_show) conf.set('window', 'statusbar', self.statusbar_show) conf.add_section('pref... | 37,089 |
def hide_cursor(self): if self.fullscreen_mode == True: pix_data = """/* XPM */ static char * invisible_xpm[] = { "1 1 1 1", " c None", " "};""" color = gtk.gdk.Color() pix = gtk.gdk.pixmap_create_from_data(None, pix_data, 1, 1, 1, color, color) invisible = gtk.gdk.Cursor(pix, pix, color, color, 0, 0) self.change... | def hide_cursor(self): if self.fullscreen_mode == True and self.user_prompt_visible == False: pix_data = """/* XPM */ static char * invisible_xpm[] = { "1 1 1 1", " c None", " "};""" color = gtk.gdk.Color() pix = gtk.gdk.pixmap_create_from_data(None, pix_data, 1, 1, 1, color, color) invisible = gtk.gdk.Cursor(pix... | 37,090 |
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 "general" prefs: table_settings = gtk.Table(13, 3, False) table_settings.attach(gtk.Label(), 1, 3, 1, 2, gtk.FILL|gtk.EXPAN... | 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 "general" prefs: table_settings = gtk.Table(13, 3, False) table_settings.attach(gtk.Label(), 1, 3, 1, 2, gtk.FILL|gtk.EXPAN... | 37,091 |
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 "general" prefs: table_settings = gtk.Table(13, 3, False) table_settings.attach(gtk.Label(), 1, 3, 1, 2, gtk.FILL|gtk.EXPAN... | 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 "general" prefs: table_settings = gtk.Table(13, 3, False) table_settings.attach(gtk.Label(), 1, 3, 1, 2, gtk.FILL|gtk.EXPAN... | 37,092 |
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 "general" prefs: table_settings = gtk.Table(13, 3, False) table_settings.attach(gtk.Label(), 1, 3, 1, 2, gtk.FILL|gtk.EXPAN... | 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 "general" prefs: table_settings = gtk.Table(13, 3, False) table_settings.attach(gtk.Label(), 1, 3, 1, 2, gtk.FILL|gtk.EXPAN... | 37,093 |
def prev_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list > 0: self.curr_img_in_list -= 1 else: if self.listwrap == True: self.curr_img_in_list = len(self.image_list) - 1 else: return if self.fullscreen_mode == False: self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))... | def prev_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list > 0: self.curr_img_in_list -= 1 else: if self.listwrap_mode == 0: return elif self.listwrap_mode == 1: self.curr_img_in_list = len(self.image_list) - 1 else: return if self.fullscreen_mode == False: self.chang... | 37,094 |
def prev_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list > 0: self.curr_img_in_list -= 1 else: if self.listwrap == True: self.curr_img_in_list = len(self.image_list) - 1 else: return if self.fullscreen_mode == False: self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))... | def prev_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list > 0: self.curr_img_in_list -= 1 else: if self.listwrap == True: self.curr_img_in_list = len(self.image_list) - 1 else: if self.fullscreen_mode == True: self.change_cursor(None) dialog = gtk.MessageDialog(self.... | 37,095 |
def next_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: self.curr_img_in_list += 1 else: if self.listwrap == True: self.curr_img_in_list = 0 else: return if self.fullscreen_mode == False: self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))... | def next_img_in_list(self, action): if len(self.image_list) > 1: 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: return elif self.listwrap_mode == 1: self.curr_img_in_list = 0 else: return if self.fullscreen_mode == False: self.chang... | 37,096 |
def next_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: self.curr_img_in_list += 1 else: if self.listwrap == True: self.curr_img_in_list = 0 else: return if self.fullscreen_mode == False: self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))... | def next_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: self.curr_img_in_list += 1 else: if self.listwrap == True: self.curr_img_in_list = 0 else: if self.fullscreen_mode == True: self.change_cursor(None) dialog = gtk.MessageDialog(self.... | 37,097 |
def set_go_navigation_sensitivities(self): if self.curr_img_in_list == 0: if self.listwrap == False: self.set_previous_image_sensitivities(False) else: self.set_previous_image_sensitivities(True) self.set_first_image_sensitivities(False) self.set_next_image_sensitivities(True) self.set_last_image_sensitivities(True) el... | 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... | 37,098 |
def set_go_navigation_sensitivities(self): if self.curr_img_in_list == 0: if self.listwrap == False: self.set_previous_image_sensitivities(False) else: self.set_previous_image_sensitivities(True) self.set_first_image_sensitivities(False) self.set_next_image_sensitivities(True) self.set_last_image_sensitivities(True) el... | def set_go_navigation_sensitivities(self): if self.curr_img_in_list == 0: if self.listwrap_mode == 0: self.set_previous_image_sensitivities(False) else: self.set_previous_image_sensitivities(True) self.set_first_image_sensitivities(False) self.set_next_image_sensitivities(True) self.set_last_image_sensitivities(True) e... | 37,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.