Skip to content

Commit

Permalink
add button triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas11789 committed Jul 1, 2019
1 parent 85587f5 commit 1c656c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Module/user_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def __init__(self, base):
self.ibutton = ttk.Button(SecondFrame, text="InteractiveMagic!", command=self.gimmick)
self.ibutton.grid(row=10, column=10, padx=10, sticky="E")
self.trigger = ttk.Button(SecondFrame, text="Visualize!", command=self.map_select)
self.trigger.grid(row=10,column=11, sticky="E")
self.trigger.grid(row=10,column=11, sticky="E")
self.trigger['state'] = 'disabled'
self.ibutton['state'] = 'disabled'

self.img = ""

Expand Down Expand Up @@ -174,6 +176,7 @@ def pcap_analyse(self):

# Disable controls when performing analysis
self.trigger['state'] = 'disabled'
self.ibutton['state'] = 'disabled'
self.to_menu['state'] = 'disabled'
self.from_menu['state'] = 'disabled'

Expand Down Expand Up @@ -286,6 +289,7 @@ def generate_graph(self):
else:
self.label.grid_forget()
self.load_image()
self.ibutton['state'] = 'normal'

def gimmick(self):
import interactive_gui
Expand Down

0 comments on commit 1c656c1

Please sign in to comment.