Today, I'm happier than yesterday.. just because the things went as expected and I can go to sleep earlier...
This is how it looks the new experiment:
What I learnt
If you want to:
- draw on a GTK3 drawing area, you need to register to "draw" event.The "expose" event doesn't exist anymore.
- update a drawing area widget, you must call queue_draw on that widget
- get the dimension and position of a widget, you can call the methoed "get_allocation()" on that widget. This methoed give back a Rectangle object with this properties: x,y,width,height.
- plot with pycha, you have to create a context from the drawing area widget and from the context a surface, than pass the surface to pycha. More info on this point soon.
The stock quote data is obtained from Yahoo Finance, thanks to a web services present on their portal.
Thanks to Corey Goldberg with his library ystockquote obtain these data is a pretty easy task.
I have only to understand how much deep I can go with this script and if it is enough for what I'm looking for...
I also don't know where I can find the right keyword for stock quote companies: Google is GOOG , Apple is AAPL but I don't know where to find a list of these keywords.. or better a webservices to query.
After this research.. I need to pass to design & a bit of mockups!