There is a general guide for the api:
https://scripting.krita.org/lessons/introduction
The Dialogs and Buttons gives you a general idea of how to work with PyQt5 in Krita. Though the whole thing may be useful.
This may also be useful:
If you run into issues or get stuck feel free to ask
1 Like