|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.QScintilla.Lexers.LexerPython</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.QScintilla.Lexers.LexerPython</h1> |
|
23 <p> |
|
24 Module implementing a Python lexer with some additional methods. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#LexerPython">LexerPython</a></td> |
|
34 <td>Subclass to implement some additional lexer dependant methods.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="LexerPython" ID="LexerPython"></a> |
|
43 <h2>LexerPython</h2> |
|
44 <p> |
|
45 Subclass to implement some additional lexer dependant methods. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 SubstyledLexer, QsciLexerPython |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#LexerPython.__init__">LexerPython</a></td> |
|
61 <td>PyQt5 Qsci Qt QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtRemoteObjects QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebEngine QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras QtX11Extras QtXml QtXmlPatterns sip QtWebKit QtWebKitWidgets</td> |
|
62 </tr><tr> |
|
63 <td><a href="#LexerPython.autoCompletionWordSeparators">autoCompletionWordSeparators</a></td> |
|
64 <td>Public method to return the list of separators for autocompletion.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#LexerPython.defaultKeywords">defaultKeywords</a></td> |
|
67 <td>Public method to get the default keywords.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#LexerPython.getIndentationDifference">getIndentationDifference</a></td> |
|
70 <td>Public method to determine the difference for the new indentation.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#LexerPython.initProperties">initProperties</a></td> |
|
73 <td>Public slot to initialize the properties.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#LexerPython.isCommentStyle">isCommentStyle</a></td> |
|
76 <td>Public method to check, if a style is a comment style.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#LexerPython.isStringStyle">isStringStyle</a></td> |
|
79 <td>Public method to check, if a style is a string style.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#LexerPython.language">language</a></td> |
|
82 <td>Public method to get the lexer language.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#LexerPython.maximumKeywordSet">maximumKeywordSet</a></td> |
|
85 <td>Public method to get the maximum keyword set.</td> |
|
86 </tr> |
|
87 </table> |
|
88 <h3>Static Methods</h3> |
|
89 <table> |
|
90 <tr><td>None</td></tr> |
|
91 </table> |
|
92 <a NAME="LexerPython.__init__" ID="LexerPython.__init__"></a> |
|
93 <h4>LexerPython (Constructor)</h4> |
|
94 <b>LexerPython</b>(<i>variant="", parent=None</i>) |
|
95 <p> |
|
96 PyQt5 Qsci Qt QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras |
|
97 QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL |
|
98 QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtRemoteObjects |
|
99 QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebEngine |
|
100 QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras |
|
101 QtX11Extras QtXml QtXmlPatterns sip QtWebKit QtWebKitWidgets |
|
102 </p><a NAME="LexerPython.autoCompletionWordSeparators" ID="LexerPython.autoCompletionWordSeparators"></a> |
|
103 <h4>LexerPython.autoCompletionWordSeparators</h4> |
|
104 <b>autoCompletionWordSeparators</b>(<i></i>) |
|
105 <p> |
|
106 Public method to return the list of separators for autocompletion. |
|
107 </p><dl> |
|
108 <dt>Returns:</dt> |
|
109 <dd> |
|
110 list of separators (list of strings) |
|
111 </dd> |
|
112 </dl><a NAME="LexerPython.defaultKeywords" ID="LexerPython.defaultKeywords"></a> |
|
113 <h4>LexerPython.defaultKeywords</h4> |
|
114 <b>defaultKeywords</b>(<i>kwSet</i>) |
|
115 <p> |
|
116 Public method to get the default keywords. |
|
117 </p><dl> |
|
118 <dt><i>kwSet</i></dt> |
|
119 <dd> |
|
120 number of the keyword set (integer) |
|
121 </dd> |
|
122 </dl><dl> |
|
123 <dt>Returns:</dt> |
|
124 <dd> |
|
125 string giving the keywords (string) or None |
|
126 </dd> |
|
127 </dl><a NAME="LexerPython.getIndentationDifference" ID="LexerPython.getIndentationDifference"></a> |
|
128 <h4>LexerPython.getIndentationDifference</h4> |
|
129 <b>getIndentationDifference</b>(<i>line, editor</i>) |
|
130 <p> |
|
131 Public method to determine the difference for the new indentation. |
|
132 </p><dl> |
|
133 <dt><i>line</i></dt> |
|
134 <dd> |
|
135 line to perform the calculation for (integer) |
|
136 </dd><dt><i>editor</i></dt> |
|
137 <dd> |
|
138 QScintilla editor |
|
139 </dd> |
|
140 </dl><dl> |
|
141 <dt>Returns:</dt> |
|
142 <dd> |
|
143 amount of difference in indentation (integer) |
|
144 </dd> |
|
145 </dl><a NAME="LexerPython.initProperties" ID="LexerPython.initProperties"></a> |
|
146 <h4>LexerPython.initProperties</h4> |
|
147 <b>initProperties</b>(<i></i>) |
|
148 <p> |
|
149 Public slot to initialize the properties. |
|
150 </p><a NAME="LexerPython.isCommentStyle" ID="LexerPython.isCommentStyle"></a> |
|
151 <h4>LexerPython.isCommentStyle</h4> |
|
152 <b>isCommentStyle</b>(<i>style</i>) |
|
153 <p> |
|
154 Public method to check, if a style is a comment style. |
|
155 </p><dl> |
|
156 <dt><i>style</i></dt> |
|
157 <dd> |
|
158 style to check (integer) |
|
159 </dd> |
|
160 </dl><dl> |
|
161 <dt>Returns:</dt> |
|
162 <dd> |
|
163 flag indicating a comment style (boolean) |
|
164 </dd> |
|
165 </dl><a NAME="LexerPython.isStringStyle" ID="LexerPython.isStringStyle"></a> |
|
166 <h4>LexerPython.isStringStyle</h4> |
|
167 <b>isStringStyle</b>(<i>style</i>) |
|
168 <p> |
|
169 Public method to check, if a style is a string style. |
|
170 </p><dl> |
|
171 <dt><i>style</i></dt> |
|
172 <dd> |
|
173 style to check (integer) |
|
174 </dd> |
|
175 </dl><dl> |
|
176 <dt>Returns:</dt> |
|
177 <dd> |
|
178 flag indicating a string style (boolean) |
|
179 </dd> |
|
180 </dl><a NAME="LexerPython.language" ID="LexerPython.language"></a> |
|
181 <h4>LexerPython.language</h4> |
|
182 <b>language</b>(<i></i>) |
|
183 <p> |
|
184 Public method to get the lexer language. |
|
185 </p><dl> |
|
186 <dt>Returns:</dt> |
|
187 <dd> |
|
188 lexer language (string) |
|
189 </dd> |
|
190 </dl><a NAME="LexerPython.maximumKeywordSet" ID="LexerPython.maximumKeywordSet"></a> |
|
191 <h4>LexerPython.maximumKeywordSet</h4> |
|
192 <b>maximumKeywordSet</b>(<i></i>) |
|
193 <p> |
|
194 Public method to get the maximum keyword set. |
|
195 </p><dl> |
|
196 <dt>Returns:</dt> |
|
197 <dd> |
|
198 maximum keyword set (integer) |
|
199 </dd> |
|
200 </dl> |
|
201 <div align="right"><a href="#top">Up</a></div> |
|
202 <hr /> |
|
203 </body></html> |