No event, just method

This commit is contained in:
HomeWorld
2010-11-02 22:37:48 +02:00
parent a4f6916fbc
commit e0624b3d7d

View File

@@ -19,7 +19,7 @@ Stage1Selected, EVT_SB_STAGE1_SEL = wx.lib.newevent.NewEvent()
Stage2Selected, EVT_SB_STAGE2_SEL = wx.lib.newevent.NewEvent()
Stage3Selected, EVT_SB_STAGE3_SEL = wx.lib.newevent.NewEvent()
SearchSelected, EVT_SB_SEARCH_SEL = wx.lib.newevent.NewEvent()
SBRefreshContent, EVT_SB_REFRESH_CONTENT = wx.lib.newevent.NewEvent()
class ShipBrowser(wx.Panel):
def __init__(self, parent):
@@ -64,12 +64,12 @@ class ShipBrowser(wx.Panel):
self.Bind(EVT_SB_STAGE1_SEL, self.stage1)
self.Bind(EVT_SB_STAGE3_SEL, self.stage3)
self.Bind(EVT_SB_SEARCH_SEL, self.searchStage)
self.Bind(EVT_SB_REFRESH_CONTENT, self.RefreshContent)
self.mainFrame.Bind(fv.FIT_CHANGED, self.RefreshList)
self.stage1(None)
def RefreshContent(self,event):
def RefreshContent(self):
stage = self.GetActiveStage()
stageData = self.GetStageData(stage)
self.hpane.gotoStage(stage, stageData)