Re: [PyQt] Drawing on a QFrame

2013-06-28 Thread Phil Thompson
On Fri, 28 Jun 2013 15:35:20 +1000, Phil phil_...@bigpond.com wrote: Thank you for reading this. I'd like to draw on a QFrame. The following does draw a line but not on the frame, instead the line is drawn on the main window. I've done this years ago with Qt and C++ but I don't

Re: [PyQt] Drawing on a QFrame

2013-06-28 Thread Phil
On 28/06/13 18:56, Phil Thompson wrote: On Fri, 28 Jun 2013 15:35:20 +1000, Phil phil_...@bigpond.com wrote: Thank you for reading this. I'd like to draw on a QFrame. The following does draw a line but not on the frame, instead the line is drawn on the main window. I've done this years

[PyQt] Drawing on a QFrame

2013-06-27 Thread Phil
Thank you for reading this. I'd like to draw on a QFrame. The following does draw a line but not on the frame, instead the line is drawn on the main window. I've done this years ago with Qt and C++ but I don't remember how I did it. class DrawTest(QtGui.QMainWindow): def __init__(self,