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

Class Slice

source code

Class representing a slice of a stripe.

parent -- the stripe that the slice belongs too. text -- what will appear in the slice type -- either SLICE or SUBSLICE xoffset -- start percentage xlength -- a length percentage dcCB -- function that is called on a double click. cCB -- function that is called when one click (selected) sel_col -- color when selected unsel_col -- color when unselected obj -- some python object that is related to this slice. selected -- initial state of slice.

Instance Methods [hide private]
__init__(self, parent, text, type, xoffset, xlength, dcCB=lambda: None, cCB=lambda x: None, sel_col="cornsilk1", unsel_col="white", obj=None, selected=False) source code
eventHandler(self, widget, event) source code
putOnCanvas(self) source code
shutDown(self) source code
select(self) source code
deselect(self) source code
Class Variables [hide private]
  SLICE = 0