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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
QML locator helper

        def QML(filename, target):
    """QML locator helper"""
    qmlfile = os.path.splitext(os.path.basename(filename))[0] + '.qml'
    for custom in (target, 'common'):
        qmlpath = os.path.join(__ui_dir__, 'qml', custom, qmlfile)
        if os.path.exists(qmlpath):
            return qmlpath
    raise LookupError("QML resource at '%s' not found", qmlpath)
        


src/s/l/sleipnir.frontends.handset-0.0.91/src/sleipnir/frontends/handset/presenters.py   sleipnir.frontends.handset(Download)
from .controller import QApplicationController
from .helpers import QProxy
from .constants import QML
 
 
    def source(self):
        """Get url for qml resource file"""
        return QML("window", self._window.platform.name)
 
    @Slot(int)