Documentation/Source/eric5.E5Gui.E5ErrorMessage.html

changeset 2683
ef93fc7332a2
child 2697
1cd7fa670b05
equal deleted inserted replaced
2681:e793289c4362 2683:ef93fc7332a2
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric5.E5Gui.E5ErrorMessage</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>eric5.E5Gui.E5ErrorMessage</h1>
23 <p>
24 Module implementing a specialized error message dialog.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>__msgHandlerDialog</td></tr><tr><td>__origMsgHandler</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#E5ErrorMessage">E5ErrorMessage</a></td>
34 <td>Class implementing a specialized error message dialog.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr>
40 <td><a href="#messageHandler">messageHandler</a></td>
41 <td>Module function handling messages.</td>
42 </tr><tr>
43 <td><a href="#qtHandler">qtHandler</a></td>
44 <td>Module function to install an E5ErrorMessage dialog as the global message handler.</td>
45 </tr>
46 </table>
47 <hr /><hr />
48 <a NAME="E5ErrorMessage" ID="E5ErrorMessage"></a>
49 <h2>E5ErrorMessage</h2>
50 <p>
51 Class implementing a specialized error message dialog.
52 </p>
53 <h3>Derived from</h3>
54 QErrorMessage
55 <h3>Class Attributes</h3>
56 <table>
57 <tr><td>None</td></tr>
58 </table>
59 <h3>Class Methods</h3>
60 <table>
61 <tr><td>None</td></tr>
62 </table>
63 <h3>Methods</h3>
64 <table>
65 <tr>
66 <td><a href="#E5ErrorMessage.__init__">E5ErrorMessage</a></td>
67 <td>Constructor</td>
68 </tr><tr>
69 <td><a href="#E5ErrorMessage.__filterMessage">__filterMessage</a></td>
70 <td>Private method to filter messages.</td>
71 </tr><tr>
72 <td><a href="#E5ErrorMessage.showMessage">showMessage</a></td>
73 <td>Public method to show a message.</td>
74 </tr>
75 </table>
76 <h3>Static Methods</h3>
77 <table>
78 <tr><td>None</td></tr>
79 </table>
80 <a NAME="E5ErrorMessage.__init__" ID="E5ErrorMessage.__init__"></a>
81 <h4>E5ErrorMessage (Constructor)</h4>
82 <b>E5ErrorMessage</b>(<i>parent=None</i>)
83 <p>
84 Constructor
85 </p><dl>
86 <dt><i>parent</i></dt>
87 <dd>
88 reference to the parent widget (QWidget)
89 </dd>
90 </dl><a NAME="E5ErrorMessage.__filterMessage" ID="E5ErrorMessage.__filterMessage"></a>
91 <h4>E5ErrorMessage.__filterMessage</h4>
92 <b>__filterMessage</b>(<i>message</i>)
93 <p>
94 Private method to filter messages.
95 </p><dl>
96 <dt><i>message</i></dt>
97 <dd>
98 message to be checked (string)
99 </dd>
100 </dl><dl>
101 <dt>Returns:</dt>
102 <dd>
103 flag indicating that the message should be filtered out (boolean)
104 </dd>
105 </dl><a NAME="E5ErrorMessage.showMessage" ID="E5ErrorMessage.showMessage"></a>
106 <h4>E5ErrorMessage.showMessage</h4>
107 <b>showMessage</b>(<i>message, msgType=""</i>)
108 <p>
109 Public method to show a message.
110 </p><dl>
111 <dt><i>message</i></dt>
112 <dd>
113 error message to be shown (string)
114 </dd><dt><i>msgType</i></dt>
115 <dd>
116 type of the error message (string)
117 </dd>
118 </dl>
119 <div align="right"><a href="#top">Up</a></div>
120 <hr /><hr />
121 <a NAME="messageHandler" ID="messageHandler"></a>
122 <h2>messageHandler</h2>
123 <b>messageHandler</b>(<i>msgType, message</i>)
124 <p>
125 Module function handling messages.
126 </p><dl>
127 <dt><i>msgType</i></dt>
128 <dd>
129 type of the message (integer, QtMsgType)
130 </dd><dt><i>message</i></dt>
131 <dd>
132 message to be shown (bytes)
133 </dd>
134 </dl>
135 <div align="right"><a href="#top">Up</a></div>
136 <hr /><hr />
137 <a NAME="qtHandler" ID="qtHandler"></a>
138 <h2>qtHandler</h2>
139 <b>qtHandler</b>(<i></i>)
140 <p>
141 Module function to install an E5ErrorMessage dialog as the global
142 message handler.
143 </p>
144 <div align="right"><a href="#top">Up</a></div>
145 <hr />
146 </body></html>

eric ide

mercurial