title: PyQt: How to connect QComboBox to function with Arguments
body: <p>QComboBox is connected to a function using following syntax:</p>
  
  <pre><code>myComboBox.activated.connect(self.myFunction )
  </code></pre>
  
  <p>But I need to be able to send the arguments from ComboBox to myFunction(). But if I use:</p>
  
  <pre><code>myComboBox.activated.connect(self.myFunction(myArg1, myArg2 )
  </code></pre>
  
  <p>I am getting </p>
  
  <pre><code>TypeError: connect() slot argument should be a callable or a signal, not 'NoneType'
  </code></pre>
  
  <p>What syntax needs to be used to connect a QComboBox to a function that is able to receive arguments sent from Comobobox?</p>
  
  <h1>EDITED LATER:</h1>
  
  <p>Here is the code resulting an TypeError: </p>
  
  <p><code>connect() slot argument should be a callable or a signal, not 'NoneType'</code></p>
  
  <hr>
  
  <pre><code>from PyQt4 import QtCore, QtGui
  import sys
  
  class MyClass(object):
      def __init__(self, arg):
          super(MyClass, self).__init__()
          self.arg = arg        
  
  class myWindow(QtGui.QWidget):
      def __init__(self, parent=None):
          super(myWindow, self).__init__(parent)
  
          self.comboBox = QtGui.QComboBox(self)
          self.comboBox.addItems([str(x) for x in range(3)])
  
          self.myObject=MyClass(id(self) )
  
          self.comboBox.activated.connect(self.myFunction(self.myObject, 'someArg'))
  
      def myFunction(self, arg1=None, arg2=None):
          print '\n\t myFunction(): ', type(arg1),type(arg2)
  
  if __name__ == "__main__":
      app = QtGui.QApplication(sys.argv)
      app.setApplicationName('myApp')
      dialog = myWindow()
      dialog.show()
      sys.exit(app.exec_())
  </code></pre>