[PyQt] Problem with customize the context menu

2008-09-18 Thread Min Li
Hi, I'm new to PyQt(4) and python. I want to reimplement the contextMenuEvent and customize the context menu in the QTextEdit. Could you please give me some suggestions? Thanks a lot Lee ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riv

[PyQt] Re: pyuic bug?

2008-09-18 Thread Phil Thompson
On Wed, 17 Sep 2008 20:59:57 +0200, Detlev Offenbach <[EMAIL PROTECTED]> wrote: > Hi, > > I think pyuic of recent snapshot has a bug. I have a form with a > QTreeWidget. > This widget has some columns where the last column has an empty title. > Older > pyuic generated this line of code. > > sel

[PyQt] PYQT Problem in mouse event

2008-09-18 Thread Min Li
Hi, everyone I'm doing a project with PYQT now. However, I'm not clear about how to use the 'QTextEdit.mouseDoubleClickEvent'. I mean when I double click my mouse on the QTextEdit, something was happened. How can I write the code for that? Is there anyone can give me some suggestions? T

Re: [PyQt] catching exceptions and PyQt

2008-09-18 Thread Wim Verhavert
I'm not an expert on this but I have done something like this in the past: def excepthook(excType, excValue, tracebackobj): # do here the things you want when an uncaught exception occurs pass if __name__=='__main__': # put this in your main sys.excepthook = excepthook I think I

[PyQt] Re: Bug in QString comparison

2008-09-18 Thread Phil Thompson
On Thu, 18 Sep 2008 00:33:38 +0200, Giovanni Bajo <[EMAIL PROTECTED]> wrote: > On mar, 2008-09-16 at 21:54 +0100, Phil Thompson wrote: >> On Wed, 10 Sep 2008 01:51:54 +0200, Giovanni Bajo <[EMAIL PROTECTED]> >> wrote: >> > Hello Phil, >> > >> > this looks weird to me (using sip 4.7.6, PyQt 4.4.2,