def OnOpen(self,e): dp = select_iTradePortfolio(self,self.m_portfolio,'select') if dp: # can be long ... wx.SetCursor(wx.HOURGLASS_CURSOR) self.DoneCurrentPage() dp = loadPortfolio(dp.filename()) self.NewContext(dp)
# ============================================================================ # Test me # ============================================================================ if __name__ == '__main__': setLevel(logging.INFO) alerts.load() app = wx.PySimpleApp() from itrade_local import * setLang('us') gMessage.load() import itrade_wxportfolio port = itrade_wxportfolio.select_iTradePortfolio(None, 'default', 'select') if port: port = loadPortfolio(port.filename()) open_iTradeAlerts(None, port) app.MainLoop() alerts.save() # ============================================================================ # That's all folks ! # ============================================================================
def OnDelete(self,e): dp = select_iTradePortfolio(self,self.m_portfolio,'delete') if dp: properties_iTradePortfolio(self,dp,'delete')
frame.Show() # ============================================================================ # Test me # ============================================================================ if __name__=='__main__': setLevel(logging.INFO) alerts.load() app = wx.PySimpleApp() from itrade_local import * setLang('us') gMessage.load() import itrade_wxportfolio port = itrade_wxportfolio.select_iTradePortfolio(None,'default','select') if port: port = loadPortfolio(port.filename()) open_iTradeAlerts(None,port) app.MainLoop() alerts.save() # ============================================================================ # That's all folks ! # ============================================================================