#1008: How to handcode the layout of attached cdxml?
-------------------------+--------------------------------------------------
  Reporter:  uwe_grauer  |       Owner:  somebody
      Type:  task        |      Status:  new     
  Priority:  minor       |   Milestone:  1.0     
 Component:  demos       |     Version:          
Resolution:              |    Keywords:          
-------------------------+--------------------------------------------------
Comment (by paul):

 Replying to [comment:4 uwe_grauer]:
 > Replying to [comment:3 paul]:
 > > See attached .py file. Run it and study the code. Let me know if it
 helps or not...
 >
 > With:
 > {{{
 > Platform: GTK
 > Python Version: 2.5 on linux2
 > Dabo Version: Version 0.9a; Revision 3150
 > UI Version: 2.6.3.3 on wxGTK (gtk2)
 >
 > Dabo IDE version: 0.9a (Revision 849)
 > }}}
 > i get this traceback:
 > {{{
 >     raise TypeError, ("Invalid keyword arguments passed to dGridSizer:
 %s") % bad
 > TypeError: Invalid keyword arguments passed to dGridSizer: Rows, Cols
 > }}}
 >
 > The same does run with:
 > {{{
 > Platform: GTK
 > Python Version: 2.5 on linux2
 > Dabo Version: Version 0.9a; Revision 3150
 > UI Version: 2.8.4.0 on wxGTK (gtk2)
 >
 > Dabo IDE version: 0.9a (Revision 849)
 > }}}
 > We seem to have some wxGTK 2.6.3.3 compatibility problems.

 Yes. When I was converting your cdxml, I ran across the Columns and Rows
 specifications in the grid sizer attributes. The Columns one failed with
 the 'invalid keyword arguments...' error. On a whim I changed it to 'Cols'
 and it worked. Apparently, though, now that I look at the Dabo API docs,
 there are no such properties "Rows" or "Cols". These must be the wxPython
 2.8.x properties wrapping SetRows()/SetCols().

 I think we must change my code to use MaxCols and
 MaxRows instead, but I'm still not sure why the cdxml specified "Columns"
 and "Rows".

-- 
Ticket URL: <http://svn.dabodev.com/trac/dabodemo/ticket/1008#comment:9>
Dabo Demo <http://svn.dabodev.com/trac/dabodemo>
Trac Page for Dabo Demo


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to