Display demo help.
More...
Go to the source code of this file.
Display demo help.
3 from ROOT
import TCanvas, TPaveText
8 chelp =
TCanvas(
'chelp',
'Help to run demos', 200, 10, 700, 500 )
11 welcome.AddText(
'Welcome to the ROOT demos' )
12 welcome.SetTextFont( 32 )
13 welcome.SetTextColor( 4 )
14 welcome.SetFillColor( 24 )
18 hdemo.SetTextAlign( 12 )
19 hdemo.SetTextFont( 52 )
21 text =
"""- Run demo hsimple.py first. Then in any order
22 - Click left mouse button to execute one demo
23 - Click right mouse button to see the title of the demo
24 - Click on 'Close Bar' to exit from the demo menu
25 - Select 'File/Print' to print a Postscript view of the canvas
26 - You can execute a demo with the mouse or type commands
27 - During the demo (try on this canvas) you can:
28 .... Use left button to move/grow/etc objects
29 .... Use middle button to pop overlapping objects
30 .... Use right button to get an object sensitive pop-up
32 for line
in text.split( os.linesep ):
35 hdemo.SetAllWith(
'....',
'color', 2 )
36 hdemo.SetAllWith(
'....',
'font', 72 )
37 hdemo.SetAllWith(
'....',
'size', 0.04 )
- Author
- Wim Lavrijsen
Definition in file demoshelp.py.