Make modules static if they do not use self.

This commit is contained in:
Ebag333
2017-02-09 00:04:41 -08:00
parent 72633825cf
commit 11d7f9d029
31 changed files with 266 additions and 133 deletions

View File

@@ -80,7 +80,8 @@ class CommandView(d.Display):
self.Bind(wx.EVT_LIST_BEGIN_DRAG, self.startDrag)
self.SetDropTarget(CommandViewDrop(self.handleListDrag))
def handleListDrag(self, x, y, data):
@staticmethod
def handleListDrag(x, y, data):
"""
Handles dragging of items from various pyfa displays which support it
@@ -120,7 +121,8 @@ class CommandView(d.Display):
dropSource.SetData(data)
dropSource.DoDragDrop()
def fitSort(self, fit):
@staticmethod
def fitSort(fit):
return fit.name
def fitChanged(self, event):