示例#1
0
	def setUp( self ) :
		self.app = QApplication(sys.argv)
		self.parent = QWidget()
		self.xml = XmlView( 'name' , self.parent )
		self.view = self.xml.view
		self.model = self.xml.model

		self.params = params_file( './tests/params.xml' , treeclass=QNode )
示例#2
0
    def setUp(self):
        self.app = QApplication(sys.argv)
        self.parent = QWidget()
        self.xml = XmlView("name", self.parent)
        self.view = self.xml.view
        self.model = self.xml.model

        self.params = params_file("./tests/params.xml", treeclass=QNode)
示例#3
0
	def setUp( self ) :
		self.model = XmlTreeModel()
		self.params = params_file( './tests/params.xml' , treeclass=QNode )

		self.model.add_node( self.params.getroot() )

		self.i0 = self.model.index(0,0,QModelIndex())
		self.i00 = self.model.index(0,0,self.i0)
		self.i01 = self.model.index(1,0,self.i0)
		self.i02 = self.model.index(2,0,self.i0)
		self.i000 = self.getIdx(0,self.i00)
		self.i010 = self.getIdx(0,self.i01)

		self.n0 = self.params.getroot()
		self.n00 = self.n0[0]
		self.n01 = self.n0[1]
		self.n02 = self.n0[2]
		self.n000 = self.n00[0]
		self.n010 = self.n01[0]
示例#4
0
    def setUp(self):
        self.model = XmlTreeModel()
        self.params = params_file("./tests/params.xml", treeclass=QNode)

        self.model.add_node(self.params.getroot())

        self.i0 = self.model.index(0, 0, QModelIndex())
        self.i00 = self.model.index(0, 0, self.i0)
        self.i01 = self.model.index(1, 0, self.i0)
        self.i02 = self.model.index(2, 0, self.i0)
        self.i000 = self.getIdx(0, self.i00)
        self.i010 = self.getIdx(0, self.i01)

        self.n0 = self.params.getroot()
        self.n00 = self.n0[0]
        self.n01 = self.n0[1]
        self.n02 = self.n0[2]
        self.n000 = self.n00[0]
        self.n010 = self.n01[0]
示例#5
0
	def setUp( self ) :
		self.model = XmlTreeModel()
		self.params = params_file( './tests/params.xml' , treeclass=QNode )
示例#6
0
	def setUp( self ) :
		self.models = [ XmlTreeModel() for i in range(5) ]
		self.params = params_file( './tests/params.xml' , treeclass=QNode )

		for m in self.models :
			m.add_node( self.params.getroot() )
示例#7
0
	def setUp( self ) :
		self.params = lp.params_file( './tests/params.xml' , treeclass = qp.QNode )
示例#8
0
 def setUp(self):
     self.model = XmlTreeModel()
     self.params = params_file("./tests/params.xml", treeclass=QNode)
示例#9
0
    def setUp(self):
        self.models = [XmlTreeModel() for i in range(5)]
        self.params = params_file("./tests/params.xml", treeclass=QNode)

        for m in self.models:
            m.add_node(self.params.getroot())
示例#10
0
 def setUp(self):
     self.params = lp.params_file('./tests/params.xml', treeclass=qp.QNode)