Hey, how can I retrieve the visible area of a widget which lays within a Viewport in a ScrolledWindow?
Propably a sketch tells it better:
.(0,0) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _.(200,0)
| |^|
|
| | |
|
| | |
.(0,20)_______________________________|
| |x|
| |x|
| a = visible_area.get_allocation() |x|
| |x|
| a.x => 0 , a,y => 20 |x|
| a.width => 200 , a.height => 80 |x|
| |x|
| |x|
|___________________________________.(200,100)
|
| | |
|
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|↓|
So, the values within the drawn area are interesting to me,
but I don't know how to get them.
I'd appreciate any help.
Thanks
Henning
signature.asc
Description: OpenPGP digital signature
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
