semi-solved now, it should be self.btn = dabo.ui.dButton(self, Caption="Click Me"), then this btn is accessed from form my_form_name as self.btn, but from outer objects my_form_name.btn still does not work.
2010/7/10 Mike Turchenkov <[email protected]> > Please sorry for dumb question, but what is the best way to access dButton > element, created in afterinit definition of my_form_name(dabo.ui.dForm) > class by means of btn = dabo.ui.dButton(self, Caption="Click Me") ? > > Problem is when I'm trying to access btn from the same def, it works, but > when I try access it from others parts of code, it says "dabo global name > 'btn' is not defined". I've tried my_form_name.btn but it says that > my_form_name has no 'btn' properties... > > Thanks for your activity in maillists, It increases dabo popularity! > > > > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
