From: Alex T. <al...@tw...> - 2004-09-03 19:03:28
|
At 14:42 03/09/2004 -0400, Gregory Pi=F1ero wrote: >Hi, > >I'm looking at the dbrowser sample. On my computer this is the file:=20 >C:\Python23\Lib\site-packages\PythonCard\samples\dbBrowser\dbBrowser.py > >So this thing when running seems to know the number of columns in any=20 >table I connect to and then (creates?) that many text boxes to show the=20 >values of each column. Does anyone know how this would work? How are the= =20 >text boxes created on the fly like that? > >I was unable to locate any documentation on this this and I can't see how= =20 >it does it from the code. It does it in on_btnBrowse_mouseClick, in dbBrowser.py It's the "not for the faint-hearted" code around lines 114-128 that do the= =20 actual creation on the fly .... but I am living proof that you can=20 copy/cut/paste this and do similar things in your own code without=20 understanding them :-) -- Alex. >Thanks, > >Greg > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick >_______________________________________________ >Pythoncard-users mailing list >Pyt...@li... >https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004 |