def draw(self, context):
layout = self.layout
pie = layout.menu_pie()
# 4 - LEFT
pie.operator("view3d.select_border", text="Border Select",
icon='BORDER_RECT')
# 6 - RIGHT
pie.menu("object.selectloopselection", text="Select Loop Menu", icon='LOOPSEL')
# 2 - BOTTOM
pie.operator("mesh.select_all", text="Select None",
icon='RESTRICT_SELECT_ON').action = 'DESELECT'
# 8 - TOP
pie.operator("mesh.select_all", text="Select All",
icon='RESTRICT_SELECT_OFF').action = 'SELECT'
# 7 - TOP - LEFT
pie.operator("mesh.select_all", text="Select All Toggle",
icon='ARROW_LEFTRIGHT').action = 'TOGGLE'
# 9 - TOP - RIGHT
pie.operator("mesh.select_all", text="Invert Selection",
icon='FULLSCREEN_EXIT').action = 'INVERT'
# 1 - BOTTOM - LEFT
pie.operator("view3d.select_circle", text="Circle Select",
icon='BORDER_LASSO')
# 3 - BOTTOM - RIGHT
pie.menu("object.selectallbyselection", text="Multi Select Menu", icon='SNAP_EDGE')
# Select All By Selection
评论列表
文章目录