コード例 #1
0
    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)
コード例 #2
0

# ============================================================================
# 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 !
# ============================================================================
コード例 #3
0
 def OnDelete(self,e):
     dp = select_iTradePortfolio(self,self.m_portfolio,'delete')
     if dp:
         properties_iTradePortfolio(self,dp,'delete')
コード例 #4
0
        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 !
# ============================================================================