Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(20)  |  Call(6)  |  Derive(3)  |  Import(11)
A base model for managing the data in a TableCanvas class

src/p/e/PEATDB-2.3/PEATDB/plugins/Correlation.py   PEATDB(Download)
except:
    pass
from PEATDB.TableModels import TableModel
from PEATDB.Ekin.Base import EkinDataset
import PEATDB.Ekin.Fitting as Fitting
    def updateColsMenu(self, evt=None):
        """create drop menus of available cols in chosen sheet"""
        sheet = self.smenu.getcurselection()
        S=self.DB.meta.labbook[sheet]
        model = TableModel(S)

src/p/e/PEATDB-2.3/PEATDB/Actions.py   PEATDB(Download)
    def sendDB2Labbook(self, DB, recs=None, cols=None, name='main'):
        """Send copy of selected DB cols to a labbook table
        convenience method to allow quick duplication of main DB data"""
        from PEATDB.TableModels import TableModel
        if cols == None:
            cols = DB.meta.userfields.keys()
        if recs == None:
            recs = DB.getRecs()
        cols.append('name')    
        M = TableModel()
                if DB[rec].has_key(c):
                    M.data[rec][c] = DB[rec][c]
        DB.createLabbookSheet(name, M)
        return M
 

src/p/e/PEATDB-2.3/PEATDB/plugins/PEATSAplugin.py   PEATDB(Download)
from PEATDB.Dialogs import MultipleValDialog
from PEATDB.Actions import DBActions
from PEATDB.TableModels import TableModel
from PEATDB.Tables import TableCanvas
import tkMessageBox, tkSimpleDialog, tkFileDialog
    def updateJobsTable(self):
        """Show table for current jobs list"""
        self.checkJobsDict()
        jobdict = self.DB.meta.peatsa_jobs      
        M = TableModel()
            except:
                M.addRecord(j,state='Not in DB')
        self.jobstable = TableCanvas(self.tf, model=M, height=100, editable=False)
        self.jobstable.createTableFrame()       
        self.log.yview('moveto', 1)
    def matrix2Table(self, matrix):
        """Creates a table model from a peatsa matrix"""         
        M = TableModel()
        M.addColumn('Mutations')
 
                else:                   
                    M.data[code][f] = str(row[j])
        return M
 
    def mergeMatrix(self, matrix, model, fields=None, newfields=None):

src/p/e/PEATDB-2.3/PEATDB/Ekin/Tables.py   PEATDB(Download)
from Meta import MetaData
from PEATDB.Tables import TableCanvas, ColumnHeader
from PEATDB.TableModels import TableModel
 
 
class EkinDataModel(TableModel):
class EkinProjModel(TableModel):
    def __init__(self, E):
        self.E = E        
        TableModel.__init__(self) 
        self.addColumn('name'); self.addColumn('model')

src/p/e/PEATDB-2.3/PEATDB/Ekin/Meta.py   PEATDB(Download)
    def viewAll(self, parent=None):
        """Display all meta data in a table"""
        from PEATDB.Tables import TableCanvas
        from PEATDB.TableModels import TableModel
 
        tp = Toplevel(master=parent)
        tframe = Frame(tp)
        tframe.pack()
        m = TableModel()

src/p/e/PEATDB-2.3/PEATDB/Meta.py   PEATDB(Download)
    def viewAll(self, parent=None):
        """Display all meta data in a table"""
        from PEATDB.Tables import TableCanvas
        from PEATDB.TableModels import TableModel
 
        tp = Toplevel(master=parent)
        tframe = Frame(tp)
        tframe.pack()
        m = TableModel()

src/p/e/PEATDB-2.3/PEATDB/DictEdit.py   PEATDB(Download)
import random, string
from PEATDB.Tables import TableCanvas, ColumnHeader
from PEATDB.TableModels import TableModel
from PEATDB.GUI_helper import *
 
 
class DictModel(TableModel):

src/p/e/PEATDB-2.3/PEATDB/plugins/Summary.py   PEATDB(Download)
from PEATDB.Dialogs import MultipleValDialog
from PEATDB.Actions import DBActions
from PEATDB.TableModels import TableModel
from PEATDB.Tables import TableCanvas
import tkMessageBox, tkSimpleDialog

src/p/e/PEATDB-2.3/PEATDB/Ekin/Ekin_main.py   PEATDB(Download)
 
from PEATDB.Tables import TableCanvas, ColumnHeader
from PEATDB.TableModels import TableModel
import PEATDB.Table_images as Table_images
from PEATDB.Ekin.Base import *

src/p/e/PEATDB-2.3/PEATDB/Ekin/Dataset.py   PEATDB(Download)
# 
 
from PEATDB.TableModels import TableModel
import numpy as np
import time

  1 | 2  Next