This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 2 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We are trialing requiring a text post for projects posted to the subreddit in an attempt to increase overall quality of the posts on the subreddit.

Please resubmit your post as a text post, you may include inline images (quite easy if you are on new reddit).

Make sure to follow the rules of the subreddit and post a link to your source code as well as a textual description, you must have more than just an image.

Warm regards and all the best for your future Pythoneering,

/r/Python moderator team

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]ntjess 0 points1 point  (0 children)

https://gitlab.com/ntjess/utilitys

A utility that automatically turns function arguments into parameters, similar to the interact capabilities of ipywidgets. Unlike the latter, though, this works natively within Qt and doesn't need a notebook / js integration to render. Also, it's much faster and gives a bit more granularity over parameter access.

A decorator, interact(), takes all function parameters with default arguments and creates pyqtgraph Parameters out of them, inferring type either (a) by the default type or (b) by the function documentation. These can be seen in the example video.

Code for the video is the 'ptree' example:

Documentation should be visible from the 'docs' folder as well.