Skip to content

Commit cc9aa10

Browse files
committed
Prefix run_root_event_loop function name with _
1 parent 8389dcb commit cc9aa10

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

bindings/pyroot/pythonizations/python/ROOT/_pythonization/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,8 @@ def _wait_press_posix():
376376
finally:
377377
termios.tcsetattr(sys.stdin, termios.TCSADRAIN, old_settings)
378378

379-
# \endcond
380379

381-
def run_root_event_loop():
380+
def _run_root_event_loop():
382381
from ROOT import gROOT
383382
import os
384383
import sys
@@ -398,3 +397,6 @@ def run_root_event_loop():
398397
else:
399398
_wait_press_posix()
400399

400+
401+
# \endcond
402+

bindings/pyroot/pythonizations/python/ROOT/_pythonization/_tbrowser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
\endpythondoc
3232
'''
3333

34-
from . import pythonization, run_root_event_loop
34+
from . import pythonization, _run_root_event_loop
3535

3636

3737
def _TBrowser_constructor(self, *args, block: bool = False):
3838

3939
self._original_constructor(*args)
4040

4141
if block:
42-
run_root_event_loop()
42+
_run_root_event_loop()
4343

4444

4545
def _TBrowser_Draw(self, option: str = "", block: bool = False):
@@ -56,7 +56,7 @@ def _TBrowser_Draw(self, option: str = "", block: bool = False):
5656

5757
# run loop if block flag is set
5858
if block:
59-
run_root_event_loop()
59+
_run_root_event_loop()
6060

6161

6262
@pythonization('TBrowser')

bindings/pyroot/pythonizations/python/ROOT/_pythonization/_tcanvas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
\endpythondoc
3333
'''
3434

35-
from . import pythonization, run_root_event_loop
35+
from . import pythonization, _run_root_event_loop
3636

3737
def _TCanvas_Update(self, block = False):
3838
"""
@@ -48,7 +48,7 @@ def _TCanvas_Update(self, block = False):
4848

4949
# run loop if block flag is set
5050
if block:
51-
run_root_event_loop()
51+
_run_root_event_loop()
5252

5353

5454
def _TCanvas_Draw(self, option: str = "", block: bool = False):
@@ -66,7 +66,7 @@ def _TCanvas_Draw(self, option: str = "", block: bool = False):
6666
# run loop if block flag is set
6767
if block:
6868
self._Update()
69-
run_root_event_loop()
69+
_run_root_event_loop()
7070

7171

7272
@pythonization('TCanvas')

0 commit comments

Comments
 (0)