

"You have more than one object selected.\nPlease select one text frame and try again.", "There is no object selected.\nPlease select a text frame and try again.", tScaleImageToFrame(scaletoframe=1, proportional=1, name=frame) Print "frame: %s x %s mm" % (frameW, frameH)įrameX = get_page_margins() + (max_width - frameW) / 2įrameY = get_page_margins() + (max_height - frameH) / 2įrame = scribus.createImage(frameX, frameY, frameW, frameH) # FIXME: cas où image aussi large que haute mais page en portraitįrameW = int(((coeff * w) / min_ppi) * 25.4)įrameH = int(((coeff * h) / min_ppi) * 25.4) Global page_size, page_margins_right, max_width, max_width_px, max_height, max_height_px Self.styleText(rock, "IconText", icontxtframe) Scribus.loadImage(iconpath + os.sep + "rock1.png", img) Self.styleText(walk, "IconText", icontxtframe) Scribus.loadImage(iconpath + os.sep + "walk1.png", img) Self.styleText(sun, "IconText", icontxtframe) Icontxtframe = scribus.createText(txtleft, self.topmargin + offset + 2, framewidth - txtleft, ICONSIZE) Scribus.loadImage(iconpath + os.sep + "sun1.png", img) Img = scribus.createImage(iconleft, self.topmargin + offset, ICONSIZE, ICONSIZE) Iconleft = self.leftmargin + 10 + GRAPHSIZE + 3įramewidth = self.pagewidth - self.leftmargin - self.rightmargin Img = scribus.createImage(self.leftmargin + 5, self.topmargin + 10, GRAPHSIZE, GRAPHSIZE) Scribus.sizeObject(w, h + HEADERSIZE, ame) """Build the header section of a guide""" Def placeGuide(self, rock, sun, walk, graph, iconpath):
