Skip to content

Commit

Permalink
Edit window size
Browse files Browse the repository at this point in the history
  • Loading branch information
babylard committed Jul 6, 2024
1 parent ded5ead commit 9115c05
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions GUI/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Imports
import customtkinter as ctk
from tkinter import messagebox
from scapy.all import *
Expand All @@ -17,7 +18,7 @@
stop_deauth_event = threading.Event()
deauth_thread = None

# Custom class to redirect stdout to Tkinter text widget
# Class to redirect stdout to Tkinter text widget
class TextRedirector:
def __init__(self, widget):
self.widget = widget
Expand Down Expand Up @@ -173,9 +174,8 @@ def main_window():
global root, output_text
root = ctk.CTk()
root.title("NetScan")
root.geometry("800x600")
root.geometry("753x600")

# Register the validation function
validate_command = root.register(validate_numeric_input)

def on_scan_network():
Expand Down Expand Up @@ -207,7 +207,6 @@ def on_clear_output():
output_text = ctk.CTkTextbox(root, width=750, height=450)
output_text.grid(row=2, column=0, columnspan=3, padx=1, pady=1, sticky="w")

# Redirect stdout to the scrolledtext widget
sys.stdout = TextRedirector(output_text)

ctk.CTkButton(root, text="Scan Network", command=on_scan_network).grid(row=3, column=0, padx=5, pady=5, sticky="w")
Expand Down

0 comments on commit 9115c05

Please sign in to comment.