Ejemplo n.º 1
0
    def display_results(self, results):
        '''
		Display Anova Results
		'''
        dataCollection = results['results']
        titles = results['props']['title']
        if isinstance(dataCollection, tuple):
            pass
        else:
            dataCollection = (dataCollection, )
            titles = (titles, )
        for dataFrame, title in zip(dataCollection, titles):
            lab = tk.Label(self.resultsCont,
                           text=title,
                           **titleLabelProperties)
            lab.grid(padx=3, pady=2)
            contTable = tk.Frame(self.resultsCont, bg='white')
            contTable.grid(sticky=tk.EW, pady=(3, 15), padx=10, columnspan=2)

            table = core.Table(contTable,
                               dataframe=dataFrame,
                               showtoolbar=False,
                               showstatusbar=False)
            table.show()
            self.pandastables.append(table)
Ejemplo n.º 2
0
	def initiate_table(self,columns):
		'''
		Initiates the table view of the very cool package: pandastable. 
		'''
	
		cont= tk.Frame(self.toplevel, background =MAC_GREY) 
		cont.pack(expand =True, fill = tk.BOTH)

		self.pt = core.Table(cont,dataframe = self.data, showtoolbar=False, showstatusbar=False)
		
		self.pt.show()
Ejemplo n.º 3
0
	def initiate_preview(self,df):
		'''
		Actually displaying the data.
		'''
	 
		self.pt = core.Table(self.cont_preview,
						dataframe = df, 
						showtoolbar=False, 
						showstatusbar=False)	
						
		self.pt.parentframe.master.unbind_all('<Return>') #we use this as a shortcut to upload data- will give every time an error	
		self.pt.show()	
Ejemplo n.º 4
0
    def initiate_preview(self):
        '''
		Actually displaying the data.
		'''
        dataFrameID = self.getIdFromName[self.currFileName]

        df = self.dfClass.get_data_by_id(dataFrameID)
        self.pt = core.Table(self.cont_preview,
                             dataframe=df,
                             showtoolbar=False,
                             showstatusbar=False)
        self.pt.show()
Ejemplo n.º 5
0
    def display_data(self, df):
        '''
		Displays data in a pandastable. The 
		'''
        self.pt = core.Table(self.cont_preview,
                             dataframe=df,
                             showtoolbar=False,
                             showstatusbar=False)

        ## unbind some events that are not needed
        if platform == 'MAC':
            self.pt.unbind('<MouseWheel>')  # for Mac it looks sometimes buggy
        self.pt.bind('<Control-v>', self.check_clipboard)
        self.pt.show()
Ejemplo n.º 6
0
    def initiate_preview(self, sheet=None):
        '''
		Actually displaying the data.
		'''

        df_ = self.data[sheet]  #.iloc[0:50,]
        self.get_shape_and_display(df_)
        self.pt = core.Table(self.cont_preview,
                             dataframe=df_,
                             showtoolbar=False,
                             showstatusbar=False)
        self.current_sheet = sheet
        self.pt.show()
        self.pt.parentframe.master.unbind_all('<Return>')
Ejemplo n.º 7
0
	def display_data(self):
		'''
		Displays data in a pandastable. The 
		'''
		self.pt = core.Table(self.cont_preview,
						dataframe = self.uniqueFlatSplitData, 
						showtoolbar=False, 
						showstatusbar=False)
						
		## unbind some events that are not needed
		if platform == 'MAC':			
			self.pt.unbind('<MouseWheel>') # for Mac it looks sometimes buggy 

		self.pt.unbind('<Double-Button-1>')
		
		self.pt.show()