Each field is represented using a proper gtk widget. Table and Mask need two different objects, a cell renderer for tables and a widget from module sqlkit.widgets.mask.miniwidgets for masks.
Cell renderers and function to represent the data are defined in sqlkit.widgets.table.columns.
Widgets defined in sqlkit.widgets.mask.miniwidgets are just interfaces (or proxies) to other gtk widgets.
Image Widget suitable for basic image viewing. Inherits from VBox
Push info on Status Bar
scale pixbuf image with the same ratio so that it fits into self.w/self.h
Parameters: |
|
---|
set rendered image
Parameters: | image_path – the path of the image |
---|
Set the image via the pixbuf
Parameters: | pixbuf – the gtk.gdk.Pixbuf |
---|
Set the image via the stock-id
Parameters: |
|
---|
Open another window that will show the same image with at a different zooming. Setup callback to keep the new window updated by the first one.
imageViewer has the following properties:
image: | the image path currently rendered |
---|---|
scale: | possible values AUTOREDUCTION, SCALE. If True the image should autoscale. If value is AUTOREDUCTION the image is never enlarged over its natural size |
width: | the with of the gtk.Image widget |
height: | the height og the gtk.Image widget |
scale_factor: | the current scale factor between render image and thumbnail |
ImageViewer has the following signals:
image-selected: | The image has been selected for upload. Callback:
|
||
---|---|---|---|
image-displayed: | |||
The image has been displayed
|
|||
image-deleted: | the image has been deleted
|