Skip to content

Commit

Permalink
🚧 fix button enable/disable to avoid additional processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas11789 committed Aug 7, 2019
1 parent 2161276 commit 6a4315e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Module/user_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def pcap_analyse(self):

# Enable controls
self.trigger['state'] = 'normal'
self.ibutton['state'] = 'normal'
self.to_menu['state'] = 'normal'
self.from_menu['state'] = 'normal'
else:
Expand Down Expand Up @@ -323,7 +324,11 @@ def load_image(self):
def map_select(self, *args):
print(self.option.get())
print(self.to_ip.get(), self.from_ip.get())
self.trigger['state'] = 'disabled'
self.ibutton['state'] = 'disabled'
self.generate_graph()
self.trigger['state'] = 'normal'
self.ibutton['state'] = 'normal'

def zoom_in(self):
print("zoomin")
Expand Down

0 comments on commit 6a4315e

Please sign in to comment.