Skip to content

Commit

Permalink
MultiImage plugin edited by Eric J, as mentioned in #32
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeschke authored and pllim committed Nov 24, 2015
1 parent 8307314 commit e8fa142
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions stginga/plugins/MultiImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,11 @@ def build_gui(self, container):
self.pstamps_show = False
pstamps = Widgets.HBox()
w = pstamps.get_widget()
self.logger.debug('layout="{}"'.format(pstamps_frame.layout()))
self.logger.debug('layout="{}"'.format(
pstamps_frame.get_widget().layout()))
self.logger.debug('pstamps.w="{}"'.format(w))
w.setMinimumHeight(100)
pstamps_frame.layout().addWidget(w)
pstamps_frame.add_widget(pstamps)
self.pstamps = pstamps
self.pstamps_frame = pstamps_frame

Expand Down Expand Up @@ -444,7 +445,8 @@ def add_pstamp(self):
self.logger.debug('Called.')
# Setup for thumbnail display
di = Viewers.ImageViewCanvas(logger=self.logger)
di.configure_window(100, 100)
#di.configure_window(100, 100)
di.set_desired_size(100, 100)
di.enable_autozoom('on')
di.add_callback('configure', self.window_resized_cb)
di.enable_autocuts('off')
Expand Down Expand Up @@ -487,7 +489,7 @@ def window_resized_cb(self, fitsimage, width, height):

def show_pstamps(self, show):
"""Show/hide the stamps"""
self.pstamps_frame.setVisible(show)
self.pstamps_frame.get_widget().setVisible(show)

def edit_region(self):
if self.pstag is not None:
Expand Down

0 comments on commit e8fa142

Please sign in to comment.