[PyKDE] [ERIC3][PATCH] Open python file on double click

Stephan Jaensch sjaensch at gmx.net
Thu Dec 19 13:04:01 GMT 2002


Hi,

recently I've started playing a bit with Python, PyQt and eric and I am 
stunned so far! One little thing disturbed me with eric: It didn't open 
python files when double-clicked in the project browser, I have to use the 
context menu. The attached patch fixes this, altough I am sure this is not 
the best way to do it. :-)

I didn't quite get it why the Browser class maintains it's own curItem, 
instead of using currentItem() from the parent QListView class. I've changed 
it in the handleOpen() method, but haven't touched it anywhere else. If this 
is wrong please revert it and instead insert

self.listView().curItem = self

before the manual calls to handleOpen() in the setOpen() methods.

Ciao...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eric-openOnDoubleClick.patch
Type: text/x-diff
Size: 1059 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20021219/68f859c0/eric-openOnDoubleClick.bin


More information about the PyQt mailing list