Embed a file line by line in Combo Box in Python Qt
<p>I am having a situation in which I have to fill <code>Combo Box</code> with data available in a file. Mine approach is</p>

<pre><code>self.cmbBusListBox.addItem("Select ..")
lines = [line.rstrip('\n') for line in open('i2coutput.cfg')]
      for line in lines:
            self.cmbBusListBox.addItem(line)
self.cmbBusListBox.currentIndexChanged.connect(self.selectBusChange)
</code></pre>

<p>This process giving me error:</p>

<pre><code>Traceback (most recent call last):
  File "I2CMain.py", line 3, in &lt;module&gt;
    from Py4 import QtGui, QtCore
ImportError: No module named Py4
</code></pre>

<p>In any file handling process for data populating from file in <code>Combo Box</code> giving same error. 
Please guide me. Thanks in advance. </p>

<p><code>No module named Py4</code> but there is one named <code>PyQt4</code>:</p>

<pre><code>from PyQt4 import QtGui, QtCore
</code></pre>

<p>It's just a typo in import statement and has nothing with combobox populating.</p>

python linux pyqt4