On Samstag, 29. Januar 2011, Phil Thompson wrote: > On Sat, 29 Jan 2011 11:27:39 +0100, Detlev Offenbach > > <[email protected]> wrote: > > On Donnerstag, 27. Januar 2011, Justin Frost wrote: > >> Using the new install package of PyQT 4.8.3-1 with Python 2.6.1, 2.7.1 > >> and > >> 3.1 I get a error dialog with a title of "uic error" and the message is > >> "There was an error loading the form (path to form). 'str' object has > > no > > >> attribute 'string.' when I try to use the "Generate Dialog Code..." > >> option. By deleting widgets from my form I was able isolate the error > > to > > >> the way QT Designer 4.7.1 creates ButtonGroups. If there is any > >> ButtonGroup in the form, neither eric4 nor eric5 appear to be able to > >> parse the .ui file. Has anybody else run into this program and got > >> around > >> it? > > > > This is an issue with PyQt4. It happens in uiparser.py (line 231). I > > hope, > > > Phil is able to fix it. Meanwhile you should not use QButtonGroup in the > > .ui > > file. You may do this in the Python file implementing the UI functions. > > Can somebody send me a .ui file that demonstrates the problem - I can't > reproduce it. > > Phil
Here is the file I used to debug the issue. Detlev -- Detlev Offenbach [email protected]
group.ui
Description: application/designer
_______________________________________________ Eric mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/eric
