Documentation/Source/eric4.QScintilla.Lexers.LexerPython.html

changeset 3
0d9daebf5b8c
equal deleted inserted replaced
2:bc6196164237 3:0d9daebf5b8c
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric4.QScintilla.Lexers.LexerPython</title>
6 <style>
7 body {
8 background:white;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #4FA4FF; }
14 h2 { color: white; background: #4FA4FF; }
15 h3 { color: white; background: #00557F; }
16 h4 { color: white; background: #00557F; }
17
18 a { color: #AA5500; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric4.QScintilla.Lexers.LexerPython</h1>
24 <p>
25 Module implementing a Python lexer with some additional methods.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#LexerPython">LexerPython</a></td>
35 <td>Subclass to implement some additional lexer dependant methods.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="LexerPython" ID="LexerPython"></a>
44 <h2>LexerPython</h2>
45 <p>
46
47 </p><p>
48 Subclass to implement some additional lexer dependant methods.
49 </p>
50 <h3>Derived from</h3>
51 QsciLexerPython, Lexer
52 <h3>Class Attributes</h3>
53 <table>
54 <tr><td>None</td></tr>
55 </table>
56 <h3>Methods</h3>
57 <table>
58 <tr>
59 <td><a href="#LexerPython.__init__">LexerPython</a></td>
60 <td>Constructor</td>
61 </tr><tr>
62 <td><a href="#LexerPython.autoCompletionWordSeparators">autoCompletionWordSeparators</a></td>
63 <td>Public method to return the list of separators for autocompletion.</td>
64 </tr><tr>
65 <td><a href="#LexerPython.getIndentationDifference">getIndentationDifference</a></td>
66 <td>Private method to determine the difference for the new indentation.</td>
67 </tr><tr>
68 <td><a href="#LexerPython.initProperties">initProperties</a></td>
69 <td>Public slot to initialize the properties.</td>
70 </tr><tr>
71 <td><a href="#LexerPython.isCommentStyle">isCommentStyle</a></td>
72 <td>Public method to check, if a style is a comment style.</td>
73 </tr><tr>
74 <td><a href="#LexerPython.isStringStyle">isStringStyle</a></td>
75 <td>Public method to check, if a style is a string style.</td>
76 </tr>
77 </table>
78 <a NAME="LexerPython.__init__" ID="LexerPython.__init__"></a>
79 <h4>LexerPython (Constructor)</h4>
80 <b>LexerPython</b>(<i>parent=None</i>)
81 <p>
82 Constructor
83 </p><dl>
84 <dt><i>parent</i></dt>
85 <dd>
86 parent widget of this lexer
87 </dd>
88 </dl><a NAME="LexerPython.autoCompletionWordSeparators" ID="LexerPython.autoCompletionWordSeparators"></a>
89 <h4>LexerPython.autoCompletionWordSeparators</h4>
90 <b>autoCompletionWordSeparators</b>(<i></i>)
91 <p>
92 Public method to return the list of separators for autocompletion.
93 </p><dl>
94 <dt>Returns:</dt>
95 <dd>
96 list of separators (list of strings)
97 </dd>
98 </dl><a NAME="LexerPython.getIndentationDifference" ID="LexerPython.getIndentationDifference"></a>
99 <h4>LexerPython.getIndentationDifference</h4>
100 <b>getIndentationDifference</b>(<i>line, editor</i>)
101 <p>
102 Private method to determine the difference for the new indentation.
103 </p><dl>
104 <dt><i>line</i></dt>
105 <dd>
106 line to perform the calculation for (integer)
107 </dd><dt><i>editor</i></dt>
108 <dd>
109 QScintilla editor
110 </dd>
111 </dl><dl>
112 <dt>Returns:</dt>
113 <dd>
114 amount of difference in indentation (integer)
115 </dd>
116 </dl><a NAME="LexerPython.initProperties" ID="LexerPython.initProperties"></a>
117 <h4>LexerPython.initProperties</h4>
118 <b>initProperties</b>(<i></i>)
119 <p>
120 Public slot to initialize the properties.
121 </p><a NAME="LexerPython.isCommentStyle" ID="LexerPython.isCommentStyle"></a>
122 <h4>LexerPython.isCommentStyle</h4>
123 <b>isCommentStyle</b>(<i>style</i>)
124 <p>
125 Public method to check, if a style is a comment style.
126 </p><dl>
127 <dt>Returns:</dt>
128 <dd>
129 flag indicating a comment style (boolean)
130 </dd>
131 </dl><a NAME="LexerPython.isStringStyle" ID="LexerPython.isStringStyle"></a>
132 <h4>LexerPython.isStringStyle</h4>
133 <b>isStringStyle</b>(<i>style</i>)
134 <p>
135 Public method to check, if a style is a string style.
136 </p><dl>
137 <dt>Returns:</dt>
138 <dd>
139 flag indicating a string style (boolean)
140 </dd>
141 </dl>
142 <div align="right"><a href="#top">Up</a></div>
143 <hr />
144 </body></html>

eric ide

mercurial