Part of my python program needs administrator access. How can I gain root privileges using a GUI popup similar to the gksudo
command?
I only need root privileges for a small part of my program so it would be preferable to only have the privileges for a particular function.
I'm hoping to be able to do something like:
gksudo(my_func, 'description of why password is needed')