Re: [PyKDE] QSyntaxHighlighter issues

2004-09-25 Thread stuff
Try passing "self" into the constructor of the base class (ie. __init__ method) in the constructor of your derived classes. Change this: QSyntaxHighlighter(edit) to: QSyntaxHighlighter.__init__(self, edit) and: QTextEdit(parent,name) to: QTextEdit.__init__(self,

Re: [PyKDE] Qtranslator problems w/ setAccel

2004-01-11 Thread stuff
Thanks for the reply Phil. I suppose that fix you mentioned in the change log did indeed fix the problem. However, since I'm somewhat committed to making things work w/ earlier versions of PyQt I created a small python script that fixes the pyuic created file (such that translations will work).

Re: [PyKDE] Qtranslator problems w/ setAccel

2004-01-07 Thread stuff
To followup on the problem I reported earlier, I've provided the pyuic generated main.py module as an attachment. I've modified the __tr() method to print it's arguments. Output of executing test.py is now this: $ python test.py __tr(MainWindow, None) __tr(New, None) __tr(&New, None) __tr(Ct

[PyKDE] Qtranslator problems w/ setAccel

2004-01-07 Thread stuff
I've been having issues using pyQt 3.8 when using the QTranslator class. After creating a simple mainwindow (using just the defaults from the Qt Desginer which include a menu and toolbar) and generating a python file, main.py I receive the following error when running it from a test script that