Add files via upload

This commit is contained in:
juakoknife
2025-11-20 20:16:32 +01:00
committed by GitHub
parent ae31806d7a
commit 43d57af624
36 changed files with 2948 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import sys
import os
from PyQt6.QtWidgets import QApplication
from src.gui.main_window import MainWindow
from src.gui.styles import apply_styles
def main():
# Check for root privileges
if os.geteuid() != 0:
print("This application requires root privileges to manage network interfaces.")
print("Please run with sudo.")
# In a real GUI app we might want to show a dialog before exiting,
# but for now we'll just print to stdout.
# We can also attempt to restart with sudo, but that's complex for now.
sys.exit(1)
app = QApplication(sys.argv)
# Apply premium styles
apply_styles(app)
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()