rfinn / halphagui

development of gui interface for H-alpha narrowband imaging
GNU General Public License v3.0
0 stars 0 forks source link

keep zoom the same when changing between r and Halpha images in the main frame #14

Open rfinn opened 5 years ago

rfinn commented 5 years ago

        if key == 'r':
            z = self.coadd.fitsimage.settings.get_setting('zoomlevel')
            print('zoom = ',z)
            p = self.coadd.fitsimage.settings.get_setting('pan')
            print('pan = ',p)

            self.coadd.fitsimage.set_data(self.r)
            self.coadd.fitsimage.zoom_to(z.value)
            self.coadd.fitsimage.panset_xy(p.value[0],p.value[1])
            self.coadd.canvas.redraw()
        elif key == 'h':
            self.coadd.fitsimage.set_data(self.halpha_cs)

Unfortunately, this doesn't work.