I literally hate to ask this question but I am having trouble with Qt 4 basically all I am trying to do is clear the textEdit area with clear() but I am not sure of what to do. In C++ I would just
and it would do so. I am relatively new to python I have played around with it before.
Basically this is what I have got for the New Action
New = QtGui.QAction('New',self) New.setShortcut('Ctrl+N') New.setStatusTip('New File') self.connect(New,QtCore.SIGNAL('triggered()'),QtCore.SLOT('close()'))
I want to pass a function to it to clear textEdit.
I have tried defining a function and passing it but I can't seem to get it to work :(
Edited by Celtrix: n/a