-
Notifications
You must be signed in to change notification settings - Fork 277
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
Comments
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? |
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. |
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.
The text was updated successfully, but these errors were encountered: