From 191cbf6d36bbf50d4dc017db50e93bf1b7447179 Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Wed, 16 Aug 2017 23:15:52 +0200 Subject: [PATCH] ResolutionRow: initialize the DPI label --- piper/resolutionrow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/piper/resolutionrow.py b/piper/resolutionrow.py index 2d9c85b..7b0717f 100644 --- a/piper/resolutionrow.py +++ b/piper/resolutionrow.py @@ -56,6 +56,7 @@ class ResolutionRow(Gtk.ListBoxRow): xres, __ = resolution.resolution minres = resolution.minimum maxres = resolution.maximum + self.dpi_label.set_text("{} DPI".format(xres)) with self.scale.handler_block(self._scale_handler): self.scale.props.adjustment.configure(xres, minres, maxres, 50, 50, 0)