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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/q/t/qtalchemy-0.8.3/qtalchemy/foreign_key.py   qtalchemy(Download)
from sqlalchemy.orm import mapper, create_session, relation, object_session, Query
from .user_attr import UserAttr
from .PyQtModels import QueryTableModel, attrReadonly
from .input_yoke import InputYoke
from qtalchemy.widgets import PBKeyEdit
 
        self.query = self.foreignAttr.getSelection()
        self.popupModel = QueryTableModel(self.query, ['name'])
        self.popupList.setModel(self.popupModel)
 
 
        if isinstance(widget,QtGui.QComboBox):
            col_model = QueryTableModel(self.getSelection(),ssrc=Session)
            col_model.reset_content_from_session()
            widget.setModel(col_model)
        # suspect we need a highly customized completer so as to only load the
        # parts with this prefix.
        col_model = QueryTableModel(user_attr.getSelection(),ssrc=Session)
        col_model.setParent(self.widget)
        col_model.reset_content_from_session()
    def Bind(self):
        user_attr = getattr(self.mapper.cls,self.attr)
        Session = user_attr.session_maker(self.mapper.obj)
 
        col_model = QueryTableModel(user_attr.getSelection(),ssrc=Session)

src/q/t/qtalchemy-0.8.3/qtalchemy/__init__.py   qtalchemy(Download)
 
# model elements
from .PyQtModels import ClassTableModel, QueryTableModel, QueryClassTableModel, \
        ModelColumn, PBTableModel, AlchemyModelDelegate, modelMimeRectangle, \
        MapperMixin, WidgetAttributeMapper, ObjectRepresent, \