Changeset View
Changeset View
Standalone View
Standalone View
ui_translate/update_ui.py
| Context not available. | |||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return context.window_manager != None | return context.window_manager is not None | ||||
| def execute(self, context): | def execute(self, context): | ||||
| if not hasattr(self, "settings"): | if not hasattr(self, "settings"): | ||||
| Context not available. | |||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return context.window_manager != None | return context.window_manager is not None | ||||
| def execute(self, context): | def execute(self, context): | ||||
| if self.use_invert: | if self.use_invert: | ||||
| Context not available. | |||||