"Chandan Pitta" wrote: > On Wed, Jul 23, 2008 at 10:34 AM, Dirk Meyer <[EMAIL PROTECTED]> wrote: >> Everytime I read something like this (also in my code) I do not like >> that fact that you have to use height for rectangle and a font size >> for the label. I guess label should also have a height and calculate >> the font size based on it. I will think about how to fix it, not your >> problem. >> > > We definitely want to make height and width optional. They can just stretch > based on the container size they are added to. As for labels, I think font > can be optional too, but I guess it should definitely honor font sizes if > they as passed by users. You see if I wanted to make a container with first > line as big bold font and next 2 lines smaller fonts, that can be a problem. > My guess is the current style is fine i.e. height depends on font. > > However I have a feature request. I can only align the label horizontally. > It would be nice to do vertical alignment too (top, bottom, center). That > way the button can always have the font centered in the button container (if > the alignment is so provided in the xml or otherwise). We will have a lot of > ways to customize how the button looks ("left - vertical centered" etc).
Updated the TODO file: | 3. Use the height parameter in Label. If font size is not given, calculate | it based on height. If both are given, add additional valign parameter | (top, center, bottom) > While we are on this topic, the doc string for label mentions that size can > be None, however in the __init__ you use size[1], so we need to get rid of > that or the doc string. Stupid copy-paste. That None stuf was true for the first class I wrote that docstring and I copied it too often :( Fixed. Dischi -- He didn't look mad, but they never did. -- (Terry Pratchett, Strata) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel