diff --git a/src/core/widgets/image_view_mixin.py b/src/core/widgets/image_view_mixin.py index bc7409d..7e1e90b 100644 --- a/src/core/widgets/image_view_mixin.py +++ b/src/core/widgets/image_view_mixin.py @@ -1,6 +1,9 @@ # Python imports # Lib imports +import gi +gi.require_version('GdkPixbuf', '2.0') +from gi.repository import GdkPixbuf # Application imports @@ -20,6 +23,7 @@ class ImageViewMixin: self.set_from_pixbuf(self.work_pixbuff) def _rotate_left(self): + print("flipl") if self.work_pixbuff and self.pixbuff: self.work_pixbuff = self.work_pixbuff.rotate_simple(GdkPixbuf.PixbufRotation.COUNTERCLOCKWISE) self.pixbuff = self.pixbuff.rotate_simple(GdkPixbuf.PixbufRotation.COUNTERCLOCKWISE) @@ -39,7 +43,6 @@ class ImageViewMixin: def _fit_to_container(self, pixbuff = None): self.fit_to_win = True - print(self.work_pixbuff) if (self.work_pixbuff and self.pixbuff) or pixbuff: parent_aloc = self.get_parent().get_parent().get_allocation()