Added an event for doing a full content refresh in shipbrowser (for active stage)
This commit is contained in:
@@ -19,6 +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):
|
||||
@@ -63,10 +64,16 @@ 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):
|
||||
stage = self.GetActiveStage()
|
||||
stageData = self.GetStageData(stage)
|
||||
self.hpane.gotoStage(stage, stageData)
|
||||
|
||||
def RefreshList(self, event):
|
||||
stage = self.GetActiveStage()
|
||||
if stage == 3 or stage == 4:
|
||||
|
||||
Reference in New Issue
Block a user