def __init__(self,master,data,**kw):
     '''
         Constructor
         '''
     MyDataFrame.__init__(self, master,**kw)
     self.pack(fill=BOTH)
     self.trading_book_table = DataTable(self,self.transform_data(self.__transform_data__(data[TABLE_DATA])),
                                         TradingBookFrame.COLUMNS,TradingBookFrame.UPPER_COLUMN_HEADERS,
                                         width=1250,height=500,editable=False)
     
     
     #self.trading_book_table.pack(fill=BOTH,side=TOP)
     self.trading_book_table.grid(row = 0,column=0,columnspan=2,sticky='news')
     #        self.summary_bar = SummaryBar(self)
     #        self.summary_bar.grid(row = 1,column=0,sticky='news')
     self.status_bar = StatusBar(self)
     #self.status_bar.pack(fill=BOTH,side=BOTTOM)
     self.status_bar.grid(row = 1,column=1,sticky='news')
     if data != None:
         self.set_data(data)
Example #2
0
 def __init__(self,master,data=None,service = None,**kw):
     '''
         Constructor
         '''
     MyDataFrame.__init__(self, master,**kw)
     self.service = service
     self.pack(fill=BOTH)
     table_data = self.transform_data(self.__transform_data__(data[TABLE_DATA]))
     self.yield_curve_table = YieldCurveDataTable(self,table_data,
                                                  YieldCurveFrame.COLUMNS,None,width=1080,height=500,bump_curve = self.bump_curve)
     
     self.yield_curve_table.grid(row = 0,column = 0,sticky='news')
     
     self.button_panel = self.create_button_frame()
     self.button_panel.grid(row = 1,column = 0,sticky='news')
     
     self.status_bar = StatusBar(self)
     self.status_bar.grid(row = 2,column = 0,sticky='news')
     if data != None:
         self.set_data(data)