Python Forum
Show GPG keys in pyqt5 window - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: Show GPG keys in pyqt5 window (/thread-595.html)



Show GPG keys in pyqt5 window - Fred Barclay - Oct-21-2016

G'day mates! I'm working on RumpelstilskN and I've exhausted my admittedly meager pyqt5 knowledge. I need a way for all the GPG keys on the system to be listed in a window, much like enigmail does:
[attachment=53]
I also would like a way to interact with the keys in the list; so for example if I double click one then XYZ will happen.
But I can't figure out how to code this. Wall

My thought currently is to do something along the lines of "gpg2 --list-keys" and then export the result into a Qt window, but this has two shortcomings:
(a) It will include lots of useless information. I'd like a clean look much like enigmail (though granted, I'm not looking to make an enigmail clone).
(b) This wouldn't allow me to interact graphically with the keys.

So any ideas/pointers? I'd appreciate any help!


I'm only looking to write this for a Linux base right now, and I'm using python 3.

Thanks!
Fred


RE: Show GPG keys in pyqt5 window - micseydel - Oct-24-2016

I'm not clear on your question(s). Is this a GUI question independent of GPG keys, and a question about how to cleanup the result of gpg --list-keys, or are they more coupled than they appear? What code have you tried?