def __init__(self, gui): self.gui=gui Form.__init__(self) self.plus = self.add(Icon("rtheme/twotone/zoom-in.png", x="left", y=0)) self.plus.onClick = self.gui.zoomPlus self.moins = self.add(Icon("rtheme/twotone/zoom-out.png", x="right", y=0)) self.moins.onClick = self.gui.zoomMoins self.haut = self.add(Icon("rtheme/twotone/arrow-up.png", x="center", y=20)) self.haut.onClick = self.gui.deplaceHaut self.gauche = self.add(Icon("rtheme/twotone/arrow-left.png", x="left", y=37)) self.gauche.onClick = self.gui.deplaceGauche self.droite = self.add(Icon("rtheme/twotone/arrow-right.png", x="right", y=37)) self.droite.onClick = self.gui.deplaceDroite self.bas = self.add(Icon("rtheme/twotone/arrow-down.png", x="center", y=54)) self.bas.onClick = self.gui.deplaceBas zero = 60 self.snapGPS = self.add(PictureRadio("rtheme/twotone/target-over.png", "rtheme/twotone/target.png", y = zero + 17, x=0)) self.snapContenu = self.add(PictureRadio("rtheme/twotone/news-over.png", "rtheme/twotone/news.png", y = zero + 17, x=17)) self.snapLibre = self.add(PictureRadio("rtheme/twotone/move-over.png", "rtheme/twotone/move.png", y = zero + 17, x=34)) self.snapGPS.onClick() self.parsage = self.add(Check("Parser ?", y=zero + 34)) self.parsage.onClick() self.x = "right" self.y = "20%" self.width = "54px" self.height = "105px"
def __init__(self): Form.__init__(self) self.haut = self.add(Label("", y="top")) self.bas = self.add(Label("", y="bottom")) self.centre = self.add(Label("", y="center")) #label.font = font self.x = "center" self.y = "bottom" self.width = "80%" self.height = "10%"
def __init__(self): Form.__init__(self) self.coord = self.add(Label("Position : 0.0, 0.0", x="center", y ="top", width="100%")) self.recherche = self.add(Entry("Rechercher...", x="left", y="bottom", width="90%")) self.recherche.defaultText = "Rechercher..." self.recherche.onEnter = self.clic self.bouton = self.add(Icon("rtheme/twotone/search.png", x="right", y="bottom")) self.bouton.onClick = self.clic #label.font = font self.x = "center" self.y = "top" self.width = "80%" self.height = "10%"