'Create a group if it doesn\'t exist and move a windows there'

def moveToGroup(self, group):

    if (self.currentWindow and group):
        self.addGroup(group)
        self.currentWindow.togroup(group)
