incunabulum / guidata

Python library generating graphical user interfaces for easy dataset editing and display / From code.google.com
Other
0 stars 0 forks source link

bug in use DirectoryItem with QSplitter #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. In the file guidata/tests/editgroupbox.py, add this line :
test = DirectoryItem("test") in the class OtherDataSet (don't forget to add 
DirectoryItem in the import statement
2. Run the programm
3. Click on the icon 'folder'

What is the expected output? What do you see instead?

There is an error : 
line 517 in qtitemwidgets, child_title = parent.parent().child_title
AttributeError : 'QSplitter' object has no attribute 'child_title'
I would like see a window which can permit me to choose the path of a directory

What version of the product are you using? On what operating system?

Version 1.2.5 on Windows XP sp3

Please provide any additional information below.

I propose this modification of the qtitemwidgets.py file : 
516 try:
517     child_title = parent.child_title
518 except AttributeError:
519     child_title = parent.parent().child_title

I got the idea in the definition of fileWidget ten lines before.

Original issue reported on code.google.com by pierre.d...@gmail.com on 25 Jan 2011 at 10:41

GoogleCodeExporter commented 9 years ago
Thanks for taking the time to report this bug.
This has already been fixed in the development version, to be released soon.

Original comment by pierre.raybaut on 23 Feb 2011 at 8:19