mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-26 09:52:16 +00:00
Pep8 fixes
This commit is contained in:
@@ -120,11 +120,10 @@ class TextBox(Region):
|
|||||||
class SimpleMDETextArea(Region):
|
class SimpleMDETextArea(Region):
|
||||||
@property
|
@property
|
||||||
def value(self):
|
def value(self):
|
||||||
return self.driver.execute_script("return document.querySelector('#' + arguments[0]).nextSibling.nextSibling.CodeMirror.getDoc().getValue();", self.root.get_attribute("id"));
|
return self.driver.execute_script("return document.querySelector('#' + arguments[0]).nextSibling.nextSibling.CodeMirror.getDoc().getValue();", self.root.get_attribute("id"))
|
||||||
|
|
||||||
def set_value(self, value):
|
def set_value(self, value):
|
||||||
self.driver.execute_script("document.querySelector('#' + arguments[0]).nextSibling.nextSibling.CodeMirror.getDoc().setValue(arguments[1]);", self.root.get_attribute("id"), value);
|
self.driver.execute_script("document.querySelector('#' + arguments[0]).nextSibling.nextSibling.CodeMirror.getDoc().setValue(arguments[1]);", self.root.get_attribute("id"), value)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CheckBox(Region):
|
class CheckBox(Region):
|
||||||
|
|||||||
@@ -520,13 +520,13 @@ and images can be specified like so:
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
Inline math equations go in like so: $\omega = d\phi / dt$. Display
|
Inline math equations go in like so: $\\omega = d\\phi / dt$. Display
|
||||||
math should get its own line and be put in in double-dollarsigns:
|
math should get its own line and be put in in double-dollarsigns:
|
||||||
|
|
||||||
$$I = \int \rho R^{2} dV$$
|
$$I = \\int \rho R^{2} dV$$
|
||||||
|
|
||||||
And note that you can backslash-escape any punctuation characters
|
And note that you can backslash-escape any punctuation characters
|
||||||
which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc.
|
which you wish to be displayed literally, ex.: \\`foo\\`, \\*bar\\*, etc.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def test_html_safe(self):
|
def test_html_safe(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user