def setShares(self,shares):
        
        if len(shares) != self.histPrice.shape[1]:
            raise AttributeError('Wrong size of shares vector.')
        self.params['shares'] = shares
        self.params['capital'] = self.params['shares']*self.params['last']
Creates a wxPython panel-based user interface using information
dataset/ETHPy150Open cmorgan/trading-with-python/lib/classes.py/Portfolio.setShares--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/wx/toolkit.py/GUIToolkit.ui_panel