Skip to content

Commit

Permalink
Fix an issue with the banner dialog being dereferenced
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeschke committed Jan 10, 2024
1 parent 2c51639 commit 7836c0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ginga/rv/Control.py
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ def banner(self):
buttons=[["Close", 0]], modal=False)

def _close_banner(*args):
top.delete()
self.ds.remove_dialog(top)

top.add_callback('activated', _close_banner)
vbox = top.get_content_area()
Expand All @@ -1524,7 +1524,7 @@ def _close_banner(*args):
vbox.add_widget(w, stretch=1)

viewer.set_image(image)
top.show()
self.ds.show_dialog(top)

def remove_image_by_name(self, chname, imname, impath=None):
channel = self.get_channel(chname)
Expand Down Expand Up @@ -1742,7 +1742,7 @@ def add_menus(self, holder):

item = helpmenu.add_name("About")
item.add_callback('activated',
lambda *args: self.banner(raiseTab=True))
lambda *args: self.banner())

item = helpmenu.add_name("Documentation")
item.add_callback('activated', lambda *args: self.help())
Expand Down

0 comments on commit 7836c0f

Please sign in to comment.