Why dont you have a print out for both statement(after the creation of widget, after the get widgets of class) and see which comes first.
Why dont you have a print out for both statement(after the creation of widget, after the get widgets of class) and see which comes first.