Пример #1
0
 def initUI(self):                       
     self.setView(pyHStandardView(self))
     self.getView().setTransform(pyHTransform2D(10,10,self.width()/2,self.height()/2))
     
     self.setCentralWidget(self.getView())
     self.setGeometry(300, 30,900,900)
     self.setWindowTitle('Qt5 - pyHotGraphSLAM')    
     self.sb=QtWidgets.QLabel(self)
     self.sb.setText("x=0,y=0")
     self.statusBar().addPermanentWidget(self.sb)
     self.sb1=QtWidgets.QLabel(self)
     self.setCurrentTool(pyHSelectionTool(self.getView()))
     self.show()
Пример #2
0
    def initUI(self):
        self.setView(pyHStandardView(self))

        #         scrollArea = QtWidgets.QScrollArea()
        #         scrollArea.setBackgroundRole(QtWidgets.QPalette.Dark)
        #         scrollArea.setWidget(self.getView())

        self.setCentralWidget(self.getView())
        self.setGeometry(300, 30, 900, 500)
        self.setWindowTitle('pyHotVision')
        self.sb = QtWidgets.QLabel(self)
        self.sb.setText("x=0,y=0")
        self.statusBar().addPermanentWidget(self.sb)
        self.sb1 = QtWidgets.QLabel(self)
        self.setCurrentTool(pyHSelectionTool(self.getView()))
        self.show()