On Monday, November 29, 2010 11:44:34 am Ed Leafe wrote:
> On Nov 29, 2010, at 1:57 PM, Jeff Johnson wrote:
> > I would like to have borders around four cells in a grid.
> 
>       Grid or grid sizer?
> 
>       It would be difficult in either case, as it would involve calculating 
> the
> coordinates where you want the borders drawn, and then using the low-level
> drawing routines. For example, if you wanted a thin red border drawn
> around some cells in a grid, with the top left cell at (100, 100), and the
> bottom-right cell at (300, 150), you would run
> 
> border = grid.drawRectangle(xPos=100, yPos=100, width=200, height=50,
> penColor="red", penWidth=1)
> 
>       You can then manipulate the properties of 'border' when the grid 
> changes.
> 
> 
> 
> -- Ed Leafe

I assumed the line would be within the cell and not on the outside of the 
cell.  Interesting problem and I wonder if you subclassed the grid.py and 
could just deal with the line drawing?

Johnf
_______________________________________________
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]

Reply via email to