Package dtk :: Package ui :: Module iconview :: Class IconView

Class IconView

source code


Icon view.

Instance Methods
 
__init__(self, padding_x=0, padding_y=0)
Initialize IconView class.
source code
 
select_first_item(self)
Select first item.
source code
 
select_last_item(self)
Select last item.
source code
 
return_item(self)
Do return action.
source code
 
select_up_item(self)
Select up row item.
source code
 
select_down_item(self)
Select next row item.
source code
 
select_left_item(self)
Select left item.
source code
 
select_right_item(self)
Select right item.
source code
 
scroll_page_up(self)
Scroll page up of iconview.
source code
 
scroll_page_down(self)
Scroll page down of iconview.
source code
 
add_items(self, items, insert_pos=None)
Add items to iconview.
source code
 
delete_items(self, items)
Delete items.
source code
 
clear(self)
Clear all items.
source code
 
draw_mask(self, cr, x, y, w, h)
Draw mask interface.
source code
 
clear_focus_item(self)
Clear item's focus status.
source code
 
set_highlight(self, item)
Set highlight status with given item.
source code
 
clear_highlight(self)
Clear all highlight status.
source code
 
update_vadjustment(self)
Update vertical adjustment.
source code
Class Variables
  __gsignals__ = {"lost-focus-item":(gobject.SIGNAL_RUN_LAST, go...
Method Details

__init__(self, padding_x=0, padding_y=0)
(Constructor)

source code 

Initialize IconView class.

Parameters:
  • padding_x - Horizontal padding value.
  • padding_y - Vertical padding value.

return_item(self)

source code 

Do return action.

This function will emit `double-click-item` signal.

add_items(self, items, insert_pos=None)

source code 

Add items to iconview.

Parameters:
  • items - A list of item that follow the rule of IconItem.
  • insert_pos - Insert position, default is None to insert new item at end position.

delete_items(self, items)

source code 

Delete items.

Parameters:
  • items - Items need to remove.

draw_mask(self, cr, x, y, w, h)

source code 

Draw mask interface.

Parameters:
  • cr - Cairo context.
  • x - X coordiante of draw area.
  • y - Y coordiante of draw area.
  • w - Width of draw area.
  • h - Height of draw area.

set_highlight(self, item)

source code 

Set highlight status with given item.

Parameters:
  • item - Item need highlight.

Class Variable Details

__gsignals__

Value:
{"lost-focus-item":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobje\
ct.TYPE_PYOBJECT,)), "motion-notify-item":(gobject.SIGNAL_RUN_LAST, go\
bject.TYPE_NONE, (gobject.TYPE_PYOBJECT, int, int)), "highlight-item":\
(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_PYOBJECT,))\
, "normal-item":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.\
TYPE_PYOBJECT,)), "button-press-item":(gobject.SIGNAL_RUN_LAST, gobjec\
t.TYPE_NONE, (gobject.TYPE_PYOBJECT, int, int)), "button-release-item"\
:(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_PYOBJECT, \
...