Skip to content

Commit

Permalink
ENH: Create bind_events for subscribe in progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
vhosouza committed Jul 15, 2024
1 parent 3b35e46 commit fb95a88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invesalius/gui/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7372,8 +7372,10 @@ def __init__(self, parent, title="Progress Dialog", msg="Initializing...", max_v
self.Bind(wx.EVT_CLOSE, self.close)

# self.Show()
self.__bind_events()

# Subscribe to the channels
def __bind_events(self):
# Subscribe to pubsub messages
Publisher.subscribe(self.update, "Update Progress bar")
Publisher.subscribe(self.close, "Close Progress bar")

Expand Down

0 comments on commit fb95a88

Please sign in to comment.