Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
231a77a0
Commit
231a77a0
authored
Apr 21, 2004
by
Alexandre Duret-Lutz
Browse files
* wrap/python/cgi/ltl2tgba.in: Use darker color and introduce
the new variable dot_bgcolor.
parent
5904255b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
231a77a0
2004-04-21 Alexandre Duret-Lutz <adl@gnu.org>
* wrap/python/cgi/ltl2tgba.in: Use darker color and introduce
the new variable dot_bgcolor.
* wrap/python/cgi/ltl2tgba.in (add_options): Revamp options output
using this new function.
...
...
wrap/python/cgi/ltl2tgba.in
View file @
231a77a0
...
...
@@ -47,6 +47,7 @@ extra_form_notice = ''
# Location of the dot command
dot
=
'dot'
# in PATH.
dot_bgcolor
=
'-Gbgcolor=#FFFFFF'
# dot = '/usr/local/bin/dot'
def
print_footer
():
...
...
@@ -153,8 +154,8 @@ def print_stats(automaton):
return
False
def
render_dot
(
basename
):
os
.
spawnlp
(
os
.
P_WAIT
,
dot
,
dot
,
'-Tpng'
,
'-Gsize=14,14'
,
'-o
'
,
basename
+
'.png'
,
basename
+
'.txt'
)
os
.
spawnlp
(
os
.
P_WAIT
,
dot
,
dot
,
dot_bgcolor
,
'-Tpng
'
,
'-Gsize=14,14'
,
'-o'
,
basename
+
'.png'
,
basename
+
'.txt'
)
reset_alarm
()
b
=
cgi
.
escape
(
basename
)
print
'<img src="'
+
b
+
'.png"><br>(<a href="'
+
b
+
'.txt">dot source</a>)'
...
...
@@ -190,9 +191,8 @@ LTL-to-Büchi translator</H1>""" % extra_header
formula
=
form
.
getfirst
(
'formula'
,
''
)
#F8F0E8
color_fm
=
'#E0D8E0'
color_lacim
=
"#F8D8E8"
color_fm
=
"#D3AEF8"
color_lacim
=
"#F8AED3"
options_common
=
[
(
'show_formula_png'
,
'draw the formula'
,
0
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment