Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/gui/mainWindow/fittingPane.py b/gui/mainWindow/fittingPane.py
- index d8f2135..1a0b43a 100644
- --- a/gui/mainWindow/fittingPane.py
- +++ b/gui/mainWindow/fittingPane.py
- @@ -46,6 +46,9 @@ def init(self):
- store.set_sort_func(11, self.sortBySlot)
- store.set_sort_column_id(11, gtk.SORT_ASCENDING)
- + ########################EXPERIMENT HERE#######################
- + self.tvwModules.set_row_separator_func(insSep)
- +
- #Cell renderers are our good old friends LETS MAKE LOTS OF THEM
- itemStateRenderer = gtk.CellRendererPixbuf()
- itemIconRenderer = gtk.CellRendererPixbuf()
- @@ -182,6 +185,16 @@ def init(self):
- self.tvwModules.connect("drag-data-received", self.dragDataRecv)
- self.tvwModules.connect("drag-data-get", self.dragDataSend)
- +def insSep(self, iter):
- + slot = self.get_value(iter, 11)
- + itern = self.iter_next(iter)
- + if itern != None:
- + slot_next = self.get_value(itern, 11)
- + if slot != slot_next and slot != None and slot_next != None:
- + self.insert_after(iter)
- + print 'inserting separator between ' + slot + ' and ' + slot_next
- + return None
- +
- def dragDataRecv(self, widget, drag_context, x, y, selection_data, info, timestamp):
- #Figure where to move to
- drop_info = widget.get_dest_row_at_pos(x, y)
Add Comment
Please, Sign In to add comment