ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces
demoshelp.py File Reference

Display demo help. More...

Go to the source code of this file.

Namespaces

 demoshelp
 

Detailed Description

Display demo help.

1 
2 import os
3 from ROOT import TCanvas, TPaveText
4 from ROOT import gROOT
5 
6 
7 
8 chelp = TCanvas( 'chelp', 'Help to run demos', 200, 10, 700, 500 )
9 
10 welcome = TPaveText( .1, .8, .9, .97 )
11 welcome.AddText( 'Welcome to the ROOT demos' )
12 welcome.SetTextFont( 32 )
13 welcome.SetTextColor( 4 )
14 welcome.SetFillColor( 24 )
15 welcome.Draw()
16 
17 hdemo = TPaveText( .05, .05, .95, .7 )
18 hdemo.SetTextAlign( 12 )
19 hdemo.SetTextFont( 52 )
20 
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
31  """
32 for line in text.split( os.linesep ):
33  hdemo.AddText( line )
34 
35 hdemo.SetAllWith( '....', 'color', 2 )
36 hdemo.SetAllWith( '....', 'font', 72 )
37 hdemo.SetAllWith( '....', 'size', 0.04 )
38 
39 hdemo.Draw()
40 chelp.Update()
Author
Wim Lavrijsen

Definition in file demoshelp.py.