-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Support interactive TBrowser in python #20550
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
base: master
Are you sure you want to change the base?
Conversation
Same as with TCanvas::Draw(), provide block flag to let run event loop until user press space key
Let use it for pythonization of TCanvas and TBrowser
bellenot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust you on this one 😉
Test Results 22 files 22 suites 3d 17h 20m 32s ⏱️ For more details on these failures, see this check. Results for commit a2d4536. ♻️ This comment has been updated with latest results. |
vepadulano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Some minor comments from my side
|
|
||
| # \endcond | ||
|
|
||
| def run_root_event_loop(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def run_root_event_loop(): | |
| def _run_root_event_loop(): |
I think this function is not "public API", so we can signal it in the naming convention
| will be suspended until <space> key pressed by user. Simple example: | ||
| \code{.py} | ||
| \endcode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this \endcode should be placed at the end of the Python snippet
Following approach from #17587
Implement alternative TBrowser::Draw() which runs event loop when block option is on.
So one can use TBrowser (web and classic) from any python session just doing:
Or one can directly provide block parameter to the constructor:
Move
run_root_event_loopfunction to__init__.pyscript - while it used from canvas and from browser