Package pyanaconda :: Package iw :: Module partition_gui :: Class DiskTreeModel
[hide private]
[frames] | no frames]

Class DiskTreeModel

source code

partition_ui_helpers_gui.gtk.TreeStore --+
                                         |
                                        DiskTreeModel

Instance Methods [hide private]
 
__init__(self) source code
 
getTreeView(self) source code
 
selectRowFromObj(self, obj, iter=None)
Find the row in the tree containing obj and select it.
source code
 
getCurrentDevice(self)
Return the device representing the current selection, None otherwise.
source code
 
getCurrentDeviceParent(self)
Return the parent of the selected row.
source code
 
resetSelection(self) source code
 
clear(self) source code
 
__getitem__(self, iter) source code
Class Variables [hide private]
  isLeaf = -3
  isFormattable = -2
  titles = N_("Device"), gobject.TYPE_STRING, 0.0, 0, 0, (N_("La...
Method Details [hide private]

selectRowFromObj(self, obj, iter=None)

source code 

Find the row in the tree containing obj and select it.

obj -- the object that we are searching iter -- an iter from the tree. If None, get the first one.

Returns the iter where obj was found. None otherwise.

getCurrentDeviceParent(self)

source code 

Return the parent of the selected row. Returns an iter. None if there is no parent.


Class Variable Details [hide private]

titles

Value:
N_("Device"), gobject.TYPE_STRING, 0.0, 0, 0, (N_("Label"), gobject.TY\
PE_STRING, 0.0, 1, 0), (N_("Size (MB)"), gobject.TYPE_STRING, 1.0, 0, \
0), (N_("Mount Point"), gobject.TYPE_STRING, 0.0, 0, isLeaf), (N_("Typ\
e"), gobject.TYPE_STRING, 0.0, 0, 0), (N_("Format"), gobject.TYPE_OBJE\
CT, 0.5, 0, isFormattable), ("", gobject.TYPE_STRING, 0.0, 0, 0), ("Is\
Leaf", gobject.TYPE_BOOLEAN, 0.0, 1, 0), ("IsFormattable", gobject.TYP\
E_BOOLEAN, 0.0, 1, 0), ("PyObject", gobject.TYPE_PYOBJECT, 0.0, 1, 0)