Skip to content

Commit

Permalink
clear ir-images
Browse files Browse the repository at this point in the history
  • Loading branch information
baskiton committed Jan 27, 2024
1 parent 0d3eaf6 commit 3af4589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SatsDecoder/systems/image_receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,8 @@ def new_file(self, fid):

def push_data(self, data):
raise NotImplementedError

def clear(self):
for i in self.images.values():
i.close()
self.current_fid = 0
1 change: 1 addition & 0 deletions SatsDecoder/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def __init__(self, master):
def clear(self):
self.table.delete(*self.table.get_children())
self.vals.clear()
self.master.decoder.ir.clear(1)

def item_select(self, evt=None):
self.master.event_generate(self.EVT_SEL, when='tail', x=evt.x, y=evt.y)
Expand Down

0 comments on commit 3af4589

Please sign in to comment.