Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting _extra_toolbars #594

Open
bwildenborg opened this issue Sep 19, 2024 · 2 comments
Open

Setting _extra_toolbars #594

bwildenborg opened this issue Sep 19, 2024 · 2 comments

Comments

@bwildenborg
Copy link

I'm interested in setting the _extra_toolbars of the underlying REPL when using embed which does not seem to provide any means of setting this.
I also tried setting _extra_toolbars of the REPL through a configure function, but that had no effect.
Sifting through the source code it looks like I would have to redo a ton of setup logic to get that to happen.
Am I missing something, or do I just need to make a feature request for this?
FWIW, it was as simple as adding an arg to embed, then passing it through the to the constructor of ptpython.repl.PythonRepl.

@jonathanslenders
Copy link
Member

IIRC, I added this at some point for ptpdb (a ptpython based pdb repl), along with a few other things. It was never really meant as a feature for end users to build upon, and ptpdb was not further developed. To be honest, at this point I don't have the bandwidth to work on this kind of specialized extensibility. Can I ask what would be the reason for this feature?

@bwildenborg
Copy link
Author

We've got Python embedded into a custom environment and I am displaying some details on our internal systems. It all seems to work well, all I did was modify the embed function to pass through a toolbar arg to the REPL instantiation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants