I was able to draw directly to the screen with a blank screen as the
canvas but I thought it'd be cool for it to be customizable - and I
wasn't sure how resizing/scaling would work if I created the screen this
way.

For example, the forecast that mythweather uses is a 5 day forecast, but
only 3 days are shown - if it was skinnable you could pick and choose
(not to mention use matching fonts etc).

In an ideal world, the weather plugin would present itself as type
"weather" and give the skin with a list of info, i.e.
   Current Temp
   Windchill Temp
   Windspeed
   Wind direction
   ...
   ...
   Forecast Day 1 ...
   Dopler map url

and then the skin would contain a definition <weather></weather> which
held screen layouts and what to show (and what to ignore).

It seems that all this is possible, but a fair ammount of code changes
have to be made before declaring a plugin as skin type "weather" and the
weather definition in the xml skin file can associate with one another.

Is there a reason why all the code is required - it seems an ideal
situation would be to declare the requested skin type and that would be
the end of it.

Thanks,
Chris


On Mon, 01 Dec 2003 21:23:31 +0100, "Dirk Meyer" <[EMAIL PROTECTED]> said:
> "Chris Griffiths" wrote:
> > I quite like the weather function on mythtv, where it will show you the
> > current weather details, the forecast and the doppler map.
> 
> nice
> 
> > I've had some success with having the plugin write to the screen itself,
> > but would like to make it skinable - but to do that I need to add another
> > special case to the python code that handles skins - it seems that
> > although its skinnable the support has to be there for the type of screen
> > - i.e. 'tv' 'player' 'menu' etc.
> 
> Look at headlines.py. It inherits from BlankScreen to display
> stuff. Freevo 1.4 won't use the area code then (so, no Idlebar), in
> cvs freevo it's an area (with different drawing functions).
> 
> 
> Dischi
> 
> -- 
> Beer: Helping ugly people have sex since 1862!
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to