Class ImageNav
ImageNav is a popup window that shows a downscaled preview of the
pixbuf that ImageView is showing. The user can drag around a
rectangle which indicates the current view of the image.
This class is used by ImageScrollWin itself. It is probably not
very useful for clients of this library.
ImageNav has the same keybindings that ImageView has. All
keypresses that it receives are passed along to the view.
ImageNav is a subclass of gtk.Window.
|
__init__(self,
view)
Creates a new image navigator for showing thumbnails of the
view. |
|
|
|
get_pixbuf(self)
Returns the downscaled pixbuf of the views pixbuf that the
image navigator shows, or None if that pixbuf has not been
created yet. |
|
|
|
|
|
|
|
show_and_grab(self,
center_x,
center_y)
Show the navigator centered around the point (center_x ,
center_y ) and grab mouse and keyboard events. |
|
|
__init__(self,
view)
(Constructor)
|
|
Creates a new image navigator for showing thumbnails of the
view. The default values are:
|
Returns the downscaled pixbuf of the views pixbuf that the
image navigator shows, or None if that pixbuf has not been
created yet.
The pixbuf is by default None.
- Returns:
- the pixbuf in the image window that this navigator
shows, or None if it has not been created.
|
show_and_grab(self,
center_x,
center_y)
|
|
Show the navigator centered around the point (center_x ,
center_y ) and grab mouse and keyboard events. The grab
continues until a left mouse button release event is received
which causes the widget to hide.
- Parameters:
center_x - x coordinate of center position
center_y - y coordinate of center position
|