[Eric] ButtonGroup in QT Designer 4.7.1

Detlev Offenbach detlev at die-offenbachs.de
Sat Jan 29 12:40:04 GMT 2011


On Samstag, 29. Januar 2011, Phil Thompson wrote:
> On Sat, 29 Jan 2011 11:27:39 +0100, Detlev Offenbach
> 
> <detlev at die-offenbachs.de> 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
detlev at die-offenbachs.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: group.ui
Type: application/x-designer
Size: 2246 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20110129/d2e43431/attachment.bin>


More information about the Eric mailing list