Skip to content

Commit

Permalink
Merge pull request #22 from joshhazelhurst123/master
Browse files Browse the repository at this point in the history
Update dhcpgui.pyw
  • Loading branch information
niccokunzmann authored May 21, 2024
2 parents 68b3df7 + 1b17eec commit 81e1b8c
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions server/dhcpgui.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,25 @@ HERE = os.path.dirname(sys.argv[0])

root = Tk()
root.title('MAC, IP & Computer')
info_text = Text(root, height = 12, width = 80)
info_text.pack(fill = BOTH, expand = True)

# Horizontal (x) Scroll bar
xscrollbar = Scrollbar(root, orient=HORIZONTAL)
xscrollbar.pack(side=BOTTOM, fill=X)

# Vertical (y) Scroll Bar
yscrollbar = Scrollbar(root)
yscrollbar.pack(side=RIGHT, fill=Y)

# Text Widget
info_text = Text(root, wrap=NONE,
xscrollcommand=xscrollbar.set,
yscrollcommand=yscrollbar.set)
info_text.insert("1.0", "text")
info_text.pack(side="left")

# Configure the scrollbars
xscrollbar.config(command=info_text.xview)
yscrollbar.config(command=info_text.yview)

configuration = DHCPServerConfiguration()
configuration.debug = print
Expand Down

0 comments on commit 81e1b8c

Please sign in to comment.