Esempio n. 1
0
        self.setSortingEnabled(True)
        self.resize(700, 700)
        self.show()

    def selectionChanged(self, newindex, oldindex):
        indexes = oldindex.indexes()
        if indexes:
            olditem = None
            for index in indexes:
                olditem = index.internalPointer()
            if olditem != None:
                # Ver si cambio algo de los valores
                bitem = self.manager.getBundleItem(uuid=olditem.uuid)
                hash = bitem.hash
                print bitem.isChanged(hash)
        indexes = newindex.indexes()
        if indexes:
            for index in indexes:
                newitem = index.internalPointer()


if __name__ == "__main__":
    from prymatex.support.manager import PMXSupportManager
    manager = PMXSupportManager()
    manager.addNamespace('prymatex', os.path.abspath('../bundles/prymatex'))
    manager.loadSupport()
    app = QApplication([])
    m = ColumnView(manager)
    app.exec_()
Esempio n. 2
0
import os, sys
sys.path.append(os.path.abspath('..'))
from PyQt4 import QtGui
if __name__ == "__main__":
    from prymatex.support.manager import PMXSupportManager
    from prymatex.gui.support.qtadapter import buildKeySequence, buildKeyEquivalent
    supportManager = PMXSupportManager()
    supportManager.addNamespace('prymatex', os.path.abspath('../prymatex/share'))
    supportManager.addNamespace('user', os.path.abspath(os.path.join(os.path.expanduser('~'), '.prymatex')))
    supportManager.loadSupport()
    for item in supportManager.BUNDLE_ITEMS.values():
        if item.keyEquivalent:
            code = buildKeySequence(item.keyEquivalent)
            keyequ = buildKeyEquivalent(code)
            print "%s --> %d --> %s --> %s" % (item.keyEquivalent, code, QtGui.QKeySequence(code).toString(format=QtGui.QKeySequence.NativeText), keyequ)
    
Esempio n. 3
0
        self.setSortingEnabled(True)
        self.resize(700, 700)
        self.show()

    def selectionChanged(self, newindex, oldindex):
        indexes = oldindex.indexes()
        if indexes:
            olditem = None
            for index in indexes:
                olditem = index.internalPointer()
            if olditem != None:
                # Ver si cambio algo de los valores
                bitem = self.manager.getBundleItem(uuid=olditem.uuid)
                hash = bitem.hash
                print bitem.isChanged(hash)
        indexes = newindex.indexes()
        if indexes:
            for index in indexes:
                newitem = index.internalPointer()


if __name__ == "__main__":
    from prymatex.support.manager import PMXSupportManager

    manager = PMXSupportManager()
    manager.addNamespace("prymatex", os.path.abspath("../bundles/prymatex"))
    manager.loadSupport()
    app = QApplication([])
    m = ColumnView(manager)
    app.exec_()
Esempio n. 4
0
import os, sys
sys.path.append(os.path.abspath('..'))
from PyQt4 import QtGui
if __name__ == "__main__":
    from prymatex.support.manager import PMXSupportManager
    from prymatex.gui.support.qtadapter import buildKeySequence, buildKeyEquivalent
    supportManager = PMXSupportManager()
    supportManager.addNamespace('prymatex',
                                os.path.abspath('../prymatex/share'))
    supportManager.addNamespace(
        'user',
        os.path.abspath(os.path.join(os.path.expanduser('~'), '.prymatex')))
    supportManager.loadSupport()
    for item in supportManager.BUNDLE_ITEMS.values():
        if item.keyEquivalent:
            code = buildKeySequence(item.keyEquivalent)
            keyequ = buildKeyEquivalent(code)
            print "%s --> %d --> %s --> %s" % (
                item.keyEquivalent, code, QtGui.QKeySequence(code).toString(
                    format=QtGui.QKeySequence.NativeText), keyequ)