title: How do i use a list that is made in another file
body: <p>Hello i am trying to get a variable out of another file but i don't know what i am doing wrong.</p>
  
  <p>This is the first file. I am trying to take values from a list that is made in the second file and put them into a combobox but i don't know how to return the list to the first file. I tried the return statement thing but it tells me there should be none</p>
  
  <pre><code>import sys
  from PyQt5.QtWidgets import (QWidget, QLabel, 
  QComboBox, QApplication)
  import selectColumn
  
  
  class Example(QWidget):
  
      def __init__(self):
          super().__init__()
  
          ItemList=selectColumn.Column()
          print(ItemList)
          self.lbl = QLabel("1", self)
          combo = QComboBox(self)
          for i in range(len(ItemList)):
              Item=ItemList[i]
              combo.addItem(Item)
  
  
          combo.move(50, 50)
          self.lbl.move(50, 150)
  
          combo.activated[str].connect(self.onActivated)        
  
          self.setGeometry(300, 300, 300, 200)
          self.setWindowTitle('QComboBox')
          self.show()
  
  
      def onActivated(self, text):
  
          self.lbl.setText(text)
          self.lbl.adjustSize()  
  
  
  if __name__ == '__main__':
  
      app = QApplication(sys.argv)
      ex = Example()
      sys.exit(app.exec_())
  </code></pre>
  
  <p>This is the second file. This is the file that makes the column values into a list.</p>
  
  <pre><code>import sqlite3
  class Column(object):
      def __init__(self):
          db= sqlite3.connect("SQLite database")
  
          cursor = db.cursor()
  
          cursor.execute("""SELECT Item_ID FROM Items_Table""")
          data = cursor.fetchall()
          print(data)
  
          db.commit()
          cursor.close()
  </code></pre>
  
  <p>Thank you for your time.</p>