Skip to content

Commit

Permalink
make plugin methods get_description staticmethod and get_icon classme…
Browse files Browse the repository at this point in the history
…thod to work with Spyder 6a2
  • Loading branch information
rhkarls committed Sep 9, 2023
1 parent eb9776c commit 7342c12
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spyder_line_profiler/spyder/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ class SpyderLineProfiler(SpyderDockablePlugin, RunExecutor):
@staticmethod
def get_name():
return _("Line Profiler")

def get_description(self):

@staticmethod
def get_description():
return _("Line profiler display for Spyder")

def get_icon(self):

@classmethod
def get_icon(cls):
return qta.icon('mdi.speedometer', color=ima.MAIN_FG_COLOR)

def on_initialize(self):
Expand Down

0 comments on commit 7342c12

Please sign in to comment.