1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
""" Actions for the refresh code plugin. """
# Enthought library imports.
from enthought.pyface.action.api import Action
class RefreshCode(Action):
""" Invoke the 'refresh code' function. """
#### 'Action' interface ###################################################
name = 'Refresh Code'
description = 'Refresh application to reflect python code changes'
accelerator = 'Ctrl+Shift+R'
def perform(self, event):
""" Perform the action. """
from enthought.util.refresh import refresh
refresh()
return
#### EOF ######################################################################
|