LowIQRaspEngineer
Posts: 1
Joined: Sun Feb 25, 2024 9:48 pm

Opening Network Settings GUI from Python Script on Raspberry Pi OS (64-bit)

Mon Feb 26, 2024 5:54 am

I'm currently working on a project using a Raspberry Pi 4 (8GB model) with the latest Raspberry Pi OS (64-bit Desktop version). My application is built with Python, specifically targeting PyQt6 for the GUI components. I aim to provide end-users with a straightforward way to access and configure their network settings directly from within the application.

I've explored various methods to invoke the network settings GUI (similar to nm-connection-editor in functionality) from my Python script but haven't found a direct way to launch the network management interface that comes by default with the Raspberry Pi OS.

Has anyone successfully implemented a method to open the default network settings window from a Python application? Any guidance or insights into commands or methods that are compatible with the latest Raspberry Pi OS environment, especially considering Wayland/Wayfire, would be greatly appreciated.

Thank you for your time and assistance!

klricks
Posts: 8908
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA

Re: Opening Network Settings GUI from Python Script on Raspberry Pi OS (64-bit)

Tue Feb 27, 2024 5:56 pm

Have you tried this:

Code: Select all

sudo nmtui
3B+ & 4B4G Running RPi OS Bookworm w/ Desktop

Return to “Python”