diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 04908eeb996..fad1fafa523 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -156,7 +156,7 @@ class TOPBAR_MT_editor_menus(Menu): bl_idname = "TOPBAR_MT_editor_menus" bl_label = "" - def draw(self, context): + def draw(self, _context): layout = self.layout layout.menu("TOPBAR_MT_file") layout.menu("TOPBAR_MT_edit") @@ -260,7 +260,7 @@ class TOPBAR_MT_file_new(Menu): return sorted(app_templates) - def draw_ex(layout, context, *, use_splash=False, use_more=False): + def draw_ex(layout, _context, *, use_splash=False, use_more=False): layout.operator_context = 'EXEC_DEFAULT' # Limit number of templates in splash screen, spill over into more menu. @@ -311,7 +311,7 @@ class TOPBAR_MT_file_import(Menu): bl_idname = "TOPBAR_MT_file_import" bl_label = "Import" - def draw(self, context): + def draw(self, _context): if bpy.app.build_options.collada: self.layout.operator("wm.collada_import", text="Collada (Default) (.dae)") if bpy.app.build_options.alembic: @@ -322,7 +322,7 @@ class TOPBAR_MT_file_export(Menu): bl_idname = "TOPBAR_MT_file_export" bl_label = "Export" - def draw(self, context): + def draw(self, _context): if bpy.app.build_options.collada: self.layout.operator("wm.collada_export", text="Collada (Default) (.dae)") if bpy.app.build_options.alembic: @@ -332,7 +332,7 @@ class TOPBAR_MT_file_export(Menu): class TOPBAR_MT_file_external_data(Menu): bl_label = "External Data" - def draw(self, context): + def draw(self, _context): layout = self.layout icon = 'CHECKBOX_HLT' if bpy.data.use_autopack else 'CHECKBOX_DEHLT' @@ -359,7 +359,7 @@ class TOPBAR_MT_file_external_data(Menu): class TOPBAR_MT_file_previews(Menu): bl_label = "Data Previews" - def draw(self, context): + def draw(self, _context): layout = self.layout layout.operator("wm.previews_ensure") @@ -552,7 +552,7 @@ class TOPBAR_MT_help(Menu): class TOPBAR_MT_file_context_menu(Menu): bl_label = "File Context Menu" - def draw(self, context): + def draw(self, _context): layout = self.layout layout.operator_context = 'INVOKE_AREA' @@ -577,7 +577,7 @@ class TOPBAR_MT_file_context_menu(Menu): class TOPBAR_MT_workspace_menu(Menu): bl_label = "Workspace" - def draw(self, context): + def draw(self, _context): layout = self.layout layout.operator("workspace.duplicate", text="Duplicate", icon='DUPLICATE') @@ -664,7 +664,7 @@ class TOPBAR_PT_name(Panel): bl_ui_units_x = 14 @classmethod - def poll(cls, context): + def poll(cls, _context): return True def draw(self, context): |