Index: branch/k0p/umitInterfaceEditor/PageNotebook.py
===================================================================
--- branch/k0p/umitInterfaceEditor/PageNotebook.py (revision 1393)
+++ branch/k0p/umitInterfaceEditor/PageNotebook.py (revision 1410)
@@ -504,4 +504,25 @@
 	
     
+    def delete_on_item(self, widget):
+	if not widget.is_voidplace(): 
+	    # remove widgets like checkbuttons or others and put voidplace
+	    childs = widget.get_children()
+	    cmd = CommandAddRemoveOption(widget,childs,
+					 self._profilecore, False)
+	    widget.set_select(False)
+	    command_manager.add_command(cmd)
+	    log.debug(' Remove Widgets like CheckButtons or others and put voidplace')
+	    
+	else:
+	    # remove voidplace and delete the widget from table/box
+	    #XXX 
+	    cmd = CommandAddRemoveVoidplace(self, 
+					    widget, self._coords, False)
+	    #widget.unload_voidplace()
+	    command_manager.add_command(cmd)
+	    log.debug('Remove voidplace and delete the widget from table')
+	
+    
+    
 	
     def _key_press_event(self, widget, event):
@@ -509,21 +530,6 @@
 	_keyval = gtk.gdk.keyval_name(event.keyval)
         if _keyval == "Delete" and self._old_selected!=None :
-	    if not widget.is_voidplace(): 
-		# remove widgets like checkbuttons or others and put voidplace
-		childs = widget.get_children()
-		cmd = CommandAddRemoveOption(widget,childs,
-					     self._profilecore, False)
-		widget.set_select(False)
-		command_manager.add_command(cmd)
-		log.debug(' Remove Widgets like CheckButtons or others and put voidplace')
-		
-	    else:
-		# remove voidplace and delete the widget from table/box
-		#XXX 
-		cmd = CommandAddRemoveVoidplace(self, 
-						widget, self._coords, False)
-		#widget.unload_voidplace()
-		command_manager.add_command(cmd)
-		log.debug('Remove voidplace and delete the widget from table')
+	    self.delete_on_item(widget)
+
 		
 	#self._table.remove(widget)
