Exemplo n.º 1
0
    def approve_creation(self):
        result = CreateTaskBase.approve_creation(self)
        selected_shapes = self._shape_history.selected_shapes

        for shape in selected_shapes:
            if isinstance(shape, shape_history.Line):
                result = False

        return result
Exemplo n.º 2
0
    def approve_creation(self):
        return CreateTaskBase.approve_creation(self)
        selected_shapes = self._shape_history.selected_shapes

        for shape in selected_shapes:
            if isinstance(shape, shape_history.Line):
                result = False

        return result
Exemplo n.º 3
0
    def approve_creation(self):
        base_result = CreateTaskBase.approve_creation(self)

        selected_lines = False

        if self.selected_items():
            selected_lines = True
        else:
            logging.getLogger("user_level_log").warning("No lines selected, please select one or more lines.")

        return base_result and selected_lines
Exemplo n.º 4
0
    def approve_creation(self):
        base_result = CreateTaskBase.approve_creation(self)
        
        selected_edge = False
        
        if self.periodic_table.current_edge:
            selected_edge = True
        else:
            logging.getLogger("user_level_log").\
                info("No element selected, please select an element.") 

        return base_result and selected_edge
Exemplo n.º 5
0
    def approve_creation(self):
        base_result = CreateTaskBase.approve_creation(self)

        selected_lines = False

        if self.selected_items():
            selected_lines = True
        else:
            logging.getLogger("user_level_log").\
                warning("No lines selected, please select one or more lines.")

        return base_result and selected_lines
Exemplo n.º 6
0
    def approve_creation(self):
        base_result = CreateTaskBase.approve_creation(self)

        selected_edge = False

        if self.periodic_table.current_edge:
            selected_edge = True
        else:
            logging.getLogger("user_level_log").\
                info("No element selected, please select an element.")

        return base_result and selected_edge
    def approve_creation(self):
        result = CreateTaskBase.approve_creation(self)
        selected_shapes = self._shape_history.selected_shapes

        for shape in selected_shapes:
            if isinstance(shape, shape_history.Line) or isinstance(shape, shape_history.CanvasGrid):
                result = False

        self.count_time = None
        try:
            self.count_time = float(str(self.count_time_ledit.text()))
        except:
            logging.getLogger("user_level_log").info("Incorrect count time value.")
        return result and self.count_time
Exemplo n.º 8
0
    def approve_creation(self):
        result = CreateTaskBase.approve_creation(self)
        selected_shapes = self._shape_history.selected_shapes

        for shape in selected_shapes:
            if (isinstance(shape, shape_history.Line)
                    or isinstance(shape, shape_history.CanvasGrid)):
                result = False

        self.count_time = None
        try:
            self.count_time = float(str(self.count_time_ledit.text()))
        except:
            logging.getLogger("user_level_log").\
                        info("Incorrect count time value.")
        return result and self.count_time
Exemplo n.º 9
0
    def approve_creation(self):
        base_result = CreateTaskBase.approve_creation(self)
        
        selected_shapes = self._shape_history.selected_shapes
        for shape in selected_shapes:
            if isinstance(shape, shape_history.Line):
                base_result = False
 
        selected_edge = False
        
        if self.periodic_table.current_edge:
            selected_edge = True
        else:
            logging.getLogger("user_level_log").\
                info("No element selected, please select an element.") 

        return base_result and selected_edge
Exemplo n.º 10
0
 def approve_creation(self):
     return CreateTaskBase.approve_creation(self)