'In the middle of drawing, toggling between modes should be disabled.'

def toggleDrawingSensitive(self, drawing=True):

    self.actions.editMode.setEnabled((not drawing))
    if ((not drawing) and self.beginner()):
        print 'Cancel    creation.'
        self.canvas.setEditing(True)
        self.canvas.restoreCursor()
        self.actions.create.setEnabled(True)
