[pygtk] Visible area of a Widget
Henning Bredel
h_bred01 at uni-muenster.de
Mon Dec 7 03:57:22 WST 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20091206/8117aa62/attachment.pgp
More information about the pygtk
mailing list