summaryrefslogtreecommitdiff
path: root/doxygen/man/man3/graph.3
blob: 62674e35b93e2161cf1b81d56b635eda123ca5db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.TH "graph" 3 "Fri Sep 9 2011" "Cmd2" \" -*- nroff -*-
.ad l
.nh
.SH NAME
graph \- 
.SH SYNOPSIS
.br
.PP
.SS "Functions"

.in +1c
.ti -1c
.RI "def \fBlabel\fP"
.br
.ti -1c
.RI "def \fBline\fP"
.br
.ti -1c
.RI "def \fBtech\fP"
.br
.in -1c
.SH "Function Documentation"
.PP 
.SS "def graph::label (txt)"
.PP
Definition at line 5 of file graph\&.py'\&.
.PP
Referenced by line()\&.
.PP
.nf
5 
6 def label(txt):
7     write(txt, font=('Arial', 20, 'italic'))
8 hideturtle()
9 width(6)

.fi
.SS "def graph::line (len, _label)"
.PP
Definition at line 10 of file graph\&.py'\&.
.PP
References label()\&.
.PP
Referenced by tech()\&.
.PP
.nf
10 
11 def line(len, _label):
12     start = pos()
13     pd()
14     forward(len)
15     pu()
16     forward(30)
17     pd()
18     label(_label)
19     pu()
20     goto(start)

.fi
.SS "def graph::tech (x, y, _label)"
.PP
Definition at line 21 of file graph\&.py'\&.
.PP
References line()\&.
.PP
.nf
21 
22 def tech(x, y, _label):
23     pu()
24     goto(x, y)
25     pd()
26     write(_label, font=('Arial', 40, 'bold'))
27     pu()
28     
29 line(600, 'Easy to write')
30 left(90)
31 line(600, 'Easy to use')
32 
33 tech(-360, 160, 'GUI')
34 tech(-390, 100, 'AJAX')
35 tech(-300, -10, 'webapp')
36 tech(190, -380, 'CLU')
37 tech(60, -320, 'TUI')
38 tech(100, -210, 'cmd')
39 tech(80, -80, 'cmd2')

.fi
.SH "Author"
.PP 
Generated automatically by Doxygen for Cmd2 from the source code'\&.