Commit 231a77a0 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* wrap/python/cgi/ltl2tgba.in: Use darker color and introduce

the new variable dot_bgcolor.
parent 5904255b
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.
......
......@@ -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&uuml;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),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment