Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 6.22/00
-
Component/s: PyROOT
-
Labels:None
-
Environment:
probably any with experimental PyROOT
Description
rootbrowse displays the TBrowser windows, but the window is completely unresponsive. This patch seems to fix the issue (I'm not sure it is the right fix, but at least it shows the problem is with handling of graphics events, or lack thereof):
diff --git a/main/python/cmdLineUtils.py b/main/python/cmdLineUtils.py
|
index a346e07680..713d605ebf 100644
|
--- a/main/python/cmdLineUtils.py
|
+++ b/main/python/cmdLineUtils.py
|
@@ -727,6 +727,8 @@ REPLACE_HELP = "replace object if already existing"
|
|
def _openBrowser(rootFile=None):
|
browser = ROOT.TBrowser()
|
+ while True:
|
+ ROOT.gSystem.ProcessEvents()
|
_input("Press enter to exit.")
|
|
def rootBrowse(fileName=None):
|
One problem with the patch is that {{ _input("Press enter to exit.")}} is never executed, and users need to ctrl-C to quit.
Attachments
Issue Links
- relates to
-
ROOT-10787 [PyROOT] Enable interactive graphics for MacOS in Python script mode
-
- Open
-