python-hunter icon indicating copy to clipboard operation
python-hunter copied to clipboard

New action - UI - to provide interactive visualizer for tracked result

Open seniorsolt opened this issue 1 year ago • 1 comments

UI provides the ability to fold and unfold tree elements and a convenient way to look at variables. To avoid making changes to "trace," I use a class attribute "events" to accumulate events tracked through trace, and a class method start() to explicitly start the UI:

import hunter
hunter.trace(action=hunter.actions.UI)

import os
os.path.join('a', 'b')
hunter.stop()
hunter.actions.UI.start()

For the implementation of the UI, I used PyQt5, so the style does not conform to PEP and uses CamelCase for overriding PyQt5 class methods.

I would like to request your review and some feedback.

I'm also unclear about the order of actions when I request to merge. Should I write additional tests, or is it enough to simply run tox on what already exists? Do I need to ensure test coverage in all environments specified in tox.ini?

seniorsolt avatar Jul 17 '24 17:07 seniorsolt

Not a bad idea, Hunter could use something like this. But it needs to be completely optional (eg: hunter should be able to run and install without pyqt). This means this needs to live in a completely separate module. I can also be in a completely separate project as well, just saying...

ionelmc avatar Jul 09 '25 09:07 ionelmc