Example #1
0
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setupUi(self)
        self.show()

        self.confJSON = self.readConfigurationJSON("config.json")
        self.calendarJSON = self.readConfigurationJSON("calendar.json",
                                                       imprimir=False)

        #Property map
        self.scene = QtGui.QGraphicsScene(self)
        self.mapViewer = MapViewer(self.scene, self.scrollArea,
                                   "img/finca-pia.jpg")
        for cerca in self.confJSON["cercas"]:
            self.mapViewer.drawCerca(cerca["polilinea"])

        #List of messages
        self.createMessages(self.messagesView)

        #self.scene = QtGui.QGraphicsScene(self)
        self.createCalendar(self.calendarJSON, self.calendarView)

        self.show()