On Sunday 23 November 2008 02:50:58 am Bob Sysero llc Dev wrote: > johnf wrote: > > On Saturday 22 November 2008 07:55:31 pm Bob Sysero llc Dev wrote: > >> Dear Dabo-Users, > >> > >> I was able to get the Create a OpenOffice SpreadSheet Example to work > >> and I would like to demo it to in my Form that I created with the > >> ClassDesigner. The module is in ui directory called DaboSpreadSheet.py. > >> What I like to do is call the module in my Form by pressing a Button > >> using the OnHit event. > > > > Normally, you would create a method to accept the event (the click event) > > and do something in the method. From ClassDesigner (CD) right click on > > the button you want to use. Choose to 'Edit Code' and CD will create > > method named "onHit". In that method you could add the code to create > > the spreadsheet. Don't forget the "import ooolib". Actually, you can > > added the import in the method - but it might be better to add it using > > "Manage Imports" (upper right button of the CD Editor). > > > > I can tell you are experiencing a learning curve with Dabo. So I thought > > I would provide a little code that does what you were describing. The > > code is different than using what you would see from CD. But maybe > > seeing the code will better explain what you are doing in CD. There are > > many ways to skin a cat in Dabo and my example is just one. Keep playing > > and you'll learn. > > Thank very much, this help quite alot and will help in my pony show this > Sunday at 10:00 am. > Learning python and Dabo at the same time is quite a learning curve and > with everyones help > I am hopping as time goes on I will be able to help the Dabo community > in development. > > Thank you again > > Bob
I sent you a ClassDesigner file off line. BTW it took minutes to create with ClassDesigner. -- John Fabiani _______________________________________________ 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]
