mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
black .
This commit is contained in:
@@ -411,15 +411,11 @@ def draw_filter(
|
|||||||
if data.data["saved_searches"]:
|
if data.data["saved_searches"]:
|
||||||
row.operator("bim.load_search", text="", icon="IMPORT").module = module
|
row.operator("bim.load_search", text="", icon="IMPORT").module = module
|
||||||
row.operator("bim.save_search", text="", icon="EXPORT").module = module
|
row.operator("bim.save_search", text="", icon="EXPORT").module = module
|
||||||
if module != 'search':
|
if module != "search":
|
||||||
if module == 'drawing_include':
|
if module == "drawing_include":
|
||||||
row.operator("bim.edit_element_filter", icon="CHECKMARK", text="").filter_mode = (
|
row.operator("bim.edit_element_filter", icon="CHECKMARK", text="").filter_mode = "INCLUDE"
|
||||||
"INCLUDE"
|
if module == "drawing_exclude":
|
||||||
)
|
row.operator("bim.edit_element_filter", icon="CHECKMARK", text="").filter_mode = "EXCLUDE"
|
||||||
if module == 'drawing_exclude':
|
|
||||||
row.operator("bim.edit_element_filter", icon="CHECKMARK", text="").filter_mode = (
|
|
||||||
"EXCLUDE"
|
|
||||||
)
|
|
||||||
row.operator("bim.enable_editing_element_filter", icon="CANCEL", text="").filter_mode = "NONE"
|
row.operator("bim.enable_editing_element_filter", icon="CANCEL", text="").filter_mode = "NONE"
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.operator("bim.add_filter_group", text="Add Search Group", icon="ADD").module = module
|
row.operator("bim.add_filter_group", text="Add Search Group", icon="ADD").module = module
|
||||||
|
|||||||
@@ -3476,7 +3476,7 @@ class EnableEditingElementFilter(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def description(cls, context, properties):
|
def description(cls, context, properties):
|
||||||
if properties.filter_mode == 'NONE':
|
if properties.filter_mode == "NONE":
|
||||||
return "Cancel filter"
|
return "Cancel filter"
|
||||||
return "Enable editing options for the include or exclude filter"
|
return "Enable editing options for the include or exclude filter"
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ from typing import Union
|
|||||||
from typing import overload
|
from typing import overload
|
||||||
from typing import Literal
|
from typing import Literal
|
||||||
from typing import TypedDict
|
from typing import TypedDict
|
||||||
|
|
||||||
# py39 compat: re-enable when support is dropped
|
# py39 compat: re-enable when support is dropped
|
||||||
# from typing_extensions import assert_never
|
# from typing_extensions import assert_never
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user