eric6/Documentation/Source/eric6.Toolbox.PyQt4ImportHook.html

branch
maintenance
changeset 6989
8b8cadf8d7e9
parent 6942
2602857055c5
equal deleted inserted replaced
6938:7926553b7509 6989:8b8cadf8d7e9
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Toolbox.PyQt4ImportHook</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.Toolbox.PyQt4ImportHook</h1>
23 <p>
24 Module implementing an import hook converting PyQt5 imports to PyQt4 imports.
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="#PyQt4Importer">PyQt4Importer</a></td>
34 <td>Class implementing an importer converting PyQt5 imports to PyQt4 imports.</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="PyQt4Importer" ID="PyQt4Importer"></a>
43 <h2>PyQt4Importer</h2>
44 <p>
45 Class implementing an importer converting PyQt5 imports to PyQt4
46 imports.
47 </p>
48 <h3>Derived from</h3>
49 object
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Class Methods</h3>
55 <table>
56 <tr><td>None</td></tr>
57 </table>
58 <h3>Methods</h3>
59 <table>
60 <tr>
61 <td><a href="#PyQt4Importer.__init__">PyQt4Importer</a></td>
62 <td>Constructor</td>
63 </tr><tr>
64 <td><a href="#PyQt4Importer.find_module">find_module</a></td>
65 <td>Public method returning the module loader.</td>
66 </tr><tr>
67 <td><a href="#PyQt4Importer.load_module">load_module</a></td>
68 <td>Public method to load a module.</td>
69 </tr>
70 </table>
71 <h3>Static Methods</h3>
72 <table>
73 <tr>
74 <td><a href="#PyQt4Importer.QComboBox_currentData">QComboBox_currentData</a></td>
75 <td>Static method to emulate the currentData method of Qt5.</td>
76 </tr>
77 </table>
78 <a NAME="PyQt4Importer.__init__" ID="PyQt4Importer.__init__"></a>
79 <h4>PyQt4Importer (Constructor)</h4>
80 <b>PyQt4Importer</b>(<i></i>)
81 <p>
82 Constructor
83 </p><a NAME="PyQt4Importer.find_module" ID="PyQt4Importer.find_module"></a>
84 <h4>PyQt4Importer.find_module</h4>
85 <b>find_module</b>(<i>fullname, path=None</i>)
86 <p>
87 Public method returning the module loader.
88 </p><dl>
89 <dt><i>fullname</i></dt>
90 <dd>
91 name of the module to be loaded (string)
92 </dd><dt><i>path</i></dt>
93 <dd>
94 path to resolve the module name (string)
95 </dd>
96 </dl><dl>
97 <dt>Returns:</dt>
98 <dd>
99 module loader object
100 </dd>
101 </dl><a NAME="PyQt4Importer.load_module" ID="PyQt4Importer.load_module"></a>
102 <h4>PyQt4Importer.load_module</h4>
103 <b>load_module</b>(<i>fullname</i>)
104 <p>
105 Public method to load a module.
106 </p><dl>
107 <dt><i>fullname</i></dt>
108 <dd>
109 name of the module to be loaded (string)
110 </dd>
111 </dl><dl>
112 <dt>Returns:</dt>
113 <dd>
114 reference to the loaded module (module)
115 </dd>
116 </dl><a NAME="PyQt4Importer.QComboBox_currentData" ID="PyQt4Importer.QComboBox_currentData"></a>
117 <h4>PyQt4Importer.QComboBox_currentData (static)</h4>
118 <b>QComboBox_currentData</b>(<i>role=None</i>)
119 <p>
120 Static method to emulate the currentData method of Qt5.
121 </p><dl>
122 <dt><i>other</i> (QComboBox)</dt>
123 <dd>
124 reference to the combo box to get the user data of
125 </dd><dt><i>role</i> (int)</dt>
126 <dd>
127 role of which data should be retrieved
128 </dd>
129 </dl><dl>
130 <dt>Returns:</dt>
131 <dd>
132 stored data at current selection
133 </dd>
134 </dl><dl>
135 <dt>Return Type:</dt>
136 <dd>
137 any
138 </dd>
139 </dl>
140 <div align="right"><a href="#top">Up</a></div>
141 <hr />
142 </body></html>

eric ide

mercurial