http://bugs.async.com.br/show_bug.cgi?id=3676

           Summary: bug with get_widget in gazpacholoader.py
           Product: Kiwi
           Version: SVN trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: (unset)
         Component: Widgets
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
   Estimated Hours: 0.0


The get_widget method in class GazpachoWidgetTree only checks '_tree' for the
widget with the 'name' passed as argument. Shouldnt it check '_view' also since
the docstring says "Retrieves the named widget from the View (or glade tree)" ?
And if the widget is not found, it raises an AttributeError that it couldnt
find it in '_view'
I came across this in my application where I have a glade file but I'm also
programmatically adding widgets to my SlaveView subclass. When I attempted to
attach a slave, it complained that it couldnt find my widget. After
investigating a little bit, I noticed that the widget that I created
programmatically is not part of the glade file, and so does not exists in _tree


-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
Kiwi mailing list
[email protected]
http://www.async.com.br/mailman/listinfo/kiwi

Reply via email to