本文整理汇总了Python中create_task_base.CreateTaskBase.approve_creation方法的典型用法代码示例。如果您正苦于以下问题:Python CreateTaskBase.approve_creation方法的具体用法?Python CreateTaskBase.approve_creation怎么用?Python CreateTaskBase.approve_creation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类create_task_base.CreateTaskBase
的用法示例。
在下文中一共展示了CreateTaskBase.approve_creation方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: approve_creation
# 需要导入模块: from create_task_base import CreateTaskBase [as 别名]
# 或者: from create_task_base.CreateTaskBase import approve_creation [as 别名]
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
示例2: approve_creation
# 需要导入模块: from create_task_base import CreateTaskBase [as 别名]
# 或者: from create_task_base.CreateTaskBase import approve_creation [as 别名]
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
示例3: approve_creation
# 需要导入模块: from create_task_base import CreateTaskBase [as 别名]
# 或者: from create_task_base.CreateTaskBase import approve_creation [as 别名]
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
示例4: approve_creation
# 需要导入模块: from create_task_base import CreateTaskBase [as 别名]
# 或者: from create_task_base.CreateTaskBase import approve_creation [as 别名]
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
示例5: approve_creation
# 需要导入模块: from create_task_base import CreateTaskBase [as 别名]
# 或者: from create_task_base.CreateTaskBase import approve_creation [as 别名]
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
示例6: approve_creation
# 需要导入模块: from create_task_base import CreateTaskBase [as 别名]
# 或者: from create_task_base.CreateTaskBase import approve_creation [as 别名]
def approve_creation(self):
return CreateTaskBase.approve_creation(self)