Skip to content

Commit

Permalink
graph adjustments: fixed node size and zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas11789 committed Aug 7, 2019
1 parent 6a4315e commit 67b5c07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Source/Module/plot_lan_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ def __init__(self, filename, path, option="Tor", to_ip="All", from_ip="All"):
'fontcolor': 'black',
'color': ' black',
'style': 'filled',
'fillcolor': 'yellow'
'fillcolor': 'yellow',
'fixedsize': 'true',
'width': '3',
'height': '3'
}
}

Expand Down
4 changes: 2 additions & 2 deletions Source/Module/user_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, base):
self.engine.set('scapy')

# Zoom
self.zoom = [900,900]
self.zoom = [900,500]
ttk.Button(FirstFrame, text="zoomIn", command=self.zoom_in).grid(row=0,column=10, padx=5, sticky="E")
ttk.Button(FirstFrame, text="zoomOut", command=self.zoom_out).grid(row=0,column=19,padx=10, sticky="E")

Expand Down Expand Up @@ -339,7 +339,7 @@ def zoom_in(self):

def zoom_out(self):
print("zoomout")
if self.zoom[0] > 700 and self.zoom[1] > 700:
if self.zoom[0] > 900 and self.zoom[1] > 500:
self.zoom[0] -= 100
self.zoom[1] -= 100
else:
Expand Down

0 comments on commit 67b5c07

Please sign in to comment.