lizzard
6th May 2009, 07:30
Hi all.
Can anybody help with next problem. I trying to overload "copy()" method of QTextEdit, but it doesn't work.
class MyQTextEdit(QtGui.QTextEdit):
def __init__(self, *args):
QtGui.QTextEdit.__init__(self, *args)
def copy(self):
QtGui.QTextEdit.copy(self)
print "copy"
But after execution when I copy text from my QTextEdit console still empty. Why?
Can anybody help with next problem. I trying to overload "copy()" method of QTextEdit, but it doesn't work.
class MyQTextEdit(QtGui.QTextEdit):
def __init__(self, *args):
QtGui.QTextEdit.__init__(self, *args)
def copy(self):
QtGui.QTextEdit.copy(self)
print "copy"
But after execution when I copy text from my QTextEdit console still empty. Why?