On Apr 2, 2010, at 3:53 PM, Ricardo Aráoz wrote:

> Hi, in the PyCon Tutorial in the section "Creating the Many:Many
> Relationship between Recipes and Categories" when adding the
> CklCategories control to the PagEditRecipes the code reads :
> 
>       79     mainSizer.insert(0, gs, 1, "expand", border=20, 
> borderSides=("top", "bottom", "left"))
> 
> I think it should read :
> 
>       79     mainSizer.insert(0, gs, "expand", 1, border=20, 
> borderSides=("top", "bottom", "left"))
> 
> Because checking the API, layout comes before proportion.


        You are correct, but that's one of the little magic things that we do 
under the hood. Layout is a string, while proportion is an integer, so if the 
method receives them reversed, it will figure out what you really meant. ;-)


-- Ed Leafe



_______________________________________________
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