lib/gui/form.py
def dataPage(f):
	"""Writes the data page for the GUI.
	@param f: File to write to
	"""
	openPage(f,'data')
	f.write("""
		File Format:<br />
		<input type="radio" name="data_file_type" value="csv" checked="checked" /> CSV<br />
		<input type="radio" name="data_file_type" value="xml" /> XML<br />
		<br />
		File:
		<input type="file" name="data_files" multiple="multiple" /><br />
		<br />
		Please follow the following guidelines for CSV files:
		<ul>
			<li>Each line must represent exactly one data point.</li>
			<li>The first value is the x coordinate. The second is the y coordinate.</li>
			<li>Do not include a header line.</li>
		</ul>
		Please follow the following guidelines for XML files:
		<ul>
			<li>The root element must be &lt;data&gt;.</li>
			<li>Each data set must be enclosed in a &lt;set&gt; element.</li>
			<li>Each &lt;set&gt; element should have an id attribute; the first should be set1.</li>
			<li>Each data point is represented by a &lt;value&gt; element with x and y attributes corresponding to its coordinates.</li>
		</ul>
	""")
	closePage(f,'data')
Writes the data page for the GUI.
	@param f: File to write to
	
Writes the data page for the GUI.
Writes the data page for the GUI .
def dataPage(f):
	openPage(f,'data')
	f.write("""
		File Format:<br />
		<input type="radio" name="data_file_type" value="csv" checked="checked" /> CSV<br />
		<input type="radio" name="data_file_type" value="xml" /> XML<br />
		<br />
		File:
		<input type="file" name="data_files" multiple="multiple" /><br />
		<br />
		Please follow the following guidelines for CSV files:
		<ul>
			<li>Each line must represent exactly one data point.</li>
			<li>The first value is the x coordinate. The second is the y coordinate.</li>
			<li>Do not include a header line.</li>
		</ul>
		Please follow the following guidelines for XML files:
		<ul>
			<li>The root element must be &lt;data&gt;.</li>
			<li>Each data set must be enclosed in a &lt;set&gt; element.</li>
			<li>Each &lt;set&gt; element should have an id attribute; the first should be set1.</li>
			<li>Each data point is represented by a &lt;value&gt; element with x and y attributes corresponding to its coordinates.</li>
		</ul>
	""")
	closePage(f,'data')
def dataPage ( f ) : openPage ( f , 'data' ) f . write ( """
		File Format:<br />
		<input type="radio" name="data_file_type" value="csv" checked="checked" /> CSV<br />
		<input type="radio" name="data_file_type" value="xml" /> XML<br />
		<br />
		File:
		<input type="file" name="data_files" multiple="multiple" /><br />
		<br />
		Please follow the following guidelines for CSV files:
		<ul>
			<li>Each line must represent exactly one data point.</li>
			<li>The first value is the x coordinate. The second is the y coordinate.</li>
			<li>Do not include a header line.</li>
		</ul>
		Please follow the following guidelines for XML files:
		<ul>
			<li>The root element must be &lt;data&gt;.</li>
			<li>Each data set must be enclosed in a &lt;set&gt; element.</li>
			<li>Each &lt;set&gt; element should have an id attribute; the first should be set1.</li>
			<li>Each data point is represented by a &lt;value&gt; element with x and y attributes corresponding to its coordinates.</li>
		</ul>
	""" ) closePage ( f , 'data' )
Writes the data page for the GUI.
Writes the data page for the GUI .
"""Writes the data page for the GUI.
	@param f: File to write to
	"""
f
File to write to
File to write to