@@ -298,8 +298,8 @@ class SpyderPluginV2(QObject, SpyderActionMixin, SpyderConfigurationObserver,
298
298
The window state.
299
299
"""
300
300
301
- # --- Private attributes -------------------------------------------------
302
- # ------------------------------------------------------------------------
301
+ # ---- Private attributes
302
+ # -------------------------------------------------------------------------
303
303
# Define configuration name map for plugin to split configuration
304
304
# among several files. See spyder/config/main.py
305
305
_CONF_NAME_MAP = None
@@ -361,8 +361,8 @@ def __init__(self, parent, configuration=None):
361
361
plugin_path = osp .join (self .get_path (), self .IMG_PATH )
362
362
IMAGE_PATH_MANAGER .add_image_path (plugin_path )
363
363
364
- # --- Private methods ----------------------------------------------------
365
- # ------------------------------------------------------------------------
364
+ # ---- Private methods
365
+ # -------------------------------------------------------------------------
366
366
def _register (self , omit_conf = False ):
367
367
"""
368
368
Setup and register plugin in Spyder's main window and connect it to
@@ -397,8 +397,8 @@ def _unregister(self):
397
397
self .is_compatible = None
398
398
self .is_registered = False
399
399
400
- # --- API: available methods ---------------------------------------------
401
- # ------------------------------------------------------------------------
400
+ # ---- API: available methods
401
+ # -------------------------------------------------------------------------
402
402
def get_path (self ):
403
403
"""
404
404
Return the plugin's system path.
@@ -765,8 +765,8 @@ def get_command_line_options(self):
765
765
sys_argv = [sys .argv [0 ]] # Avoid options passed to pytest
766
766
return get_options (sys_argv )[0 ]
767
767
768
- # --- API: Mandatory methods to define -----------------------------------
769
- # ------------------------------------------------------------------------
768
+ # ---- API: Mandatory methods to define
769
+ # -------------------------------------------------------------------------
770
770
@staticmethod
771
771
def get_name ():
772
772
"""
@@ -832,8 +832,8 @@ def on_initialize(self):
832
832
f'The plugin { type (self )} is missing an implementation of '
833
833
'on_initialize' )
834
834
835
- # --- API: Optional methods to override ----------------------------------
836
- # ------------------------------------------------------------------------
835
+ # ---- API: Optional methods to override
836
+ # -------------------------------------------------------------------------
837
837
@staticmethod
838
838
def check_compatibility ():
839
839
"""
@@ -952,14 +952,14 @@ class SpyderDockablePlugin(SpyderPluginV2):
952
952
"""
953
953
A Spyder plugin to enhance functionality with a dockable widget.
954
954
"""
955
- # --- API: Mandatory attributes ------------------------------------------
956
- # ------------------------------------------------------------------------
955
+ # ---- API: Mandatory attributes
956
+ # -------------------------------------------------------------------------
957
957
# This is the main widget of the dockable plugin.
958
958
# It needs to be a subclass of PluginMainWidget.
959
959
WIDGET_CLASS = None
960
960
961
- # --- API: Optional attributes -------------------------------------------
962
- # ------------------------------------------------------------------------
961
+ # ---- API: Optional attributes
962
+ # -------------------------------------------------------------------------
963
963
# Define a list of plugins next to which we want to to tabify this plugin.
964
964
# Example: ['Plugins.Editor']
965
965
TABIFY = []
@@ -972,8 +972,8 @@ class SpyderDockablePlugin(SpyderPluginV2):
972
972
# the action to switch is called a second time.
973
973
RAISE_AND_FOCUS = False
974
974
975
- # --- API: Available signals ---------------------------------------------
976
- # ------------------------------------------------------------------------
975
+ # ---- API: Available signals
976
+ # -------------------------------------------------------------------------
977
977
sig_focus_changed = Signal ()
978
978
"""
979
979
This signal is emitted to inform the focus of this plugin has changed.
@@ -1010,8 +1010,8 @@ class SpyderDockablePlugin(SpyderPluginV2):
1010
1010
needs its ancestor to be updated.
1011
1011
"""
1012
1012
1013
- # --- Private methods ----------------------------------------------------
1014
- # ------------------------------------------------------------------------
1013
+ # ---- Private methods
1014
+ # -------------------------------------------------------------------------
1015
1015
def __init__ (self , parent , configuration ):
1016
1016
if not issubclass (self .WIDGET_CLASS , PluginMainWidget ):
1017
1017
raise SpyderAPIError (
@@ -1053,8 +1053,8 @@ def __init__(self, parent, configuration):
1053
1053
widget .sig_update_ancestor_requested .connect (
1054
1054
self .sig_update_ancestor_requested )
1055
1055
1056
- # --- API: available methods ---------------------------------------------
1057
- # ------------------------------------------------------------------------
1056
+ # ---- API: available methods
1057
+ # -------------------------------------------------------------------------
1058
1058
def before_long_process (self , message ):
1059
1059
"""
1060
1060
Show a message in main window's status bar, change the mouse pointer
@@ -1116,8 +1116,8 @@ def set_ancestor(self, ancestor_widget):
1116
1116
"""
1117
1117
self .get_widget ().set_ancestor (ancestor_widget )
1118
1118
1119
- # --- Convenience methods from the widget exposed on the plugin
1120
- # ------------------------------------------------------------------------
1119
+ # ---- Convenience methods from the widget exposed on the plugin
1120
+ # -------------------------------------------------------------------------
1121
1121
@property
1122
1122
def dockwidget (self ):
1123
1123
return self .get_widget ().dockwidget
0 commit comments