Esempio n. 1
0
    def doInsert(self):
        try:
            shapeId = self.shapes[ self.widgetlist.currentRow ]

            frame = Words.addFrame("myshape", shapeId)
            if frame == None:
                raise "No such shape \"%s\"" % shapeId

            #frame.setTextRunAround(tableframe.RunThrough)
            #frame.setPosition(200, 160)
            #frame.resize(160, 160)

        except:
            message = "".join( traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2]) )
            self.forms.showMessageBox("Error", "Error", "%s" % message)
Esempio n. 2
0
    def doInsert(self):
        try:
            shapeId = self.shapes[self.widgetlist.currentRow]

            frame = Words.addFrame("myshape", shapeId)
            if frame == None:
                raise "No such shape \"%s\"" % shapeId

            #frame.setTextRunAround(tableframe.RunThrough)
            #frame.setPosition(200, 160)
            #frame.resize(160, 160)

        except:
            message = "".join(
                traceback.format_exception(sys.exc_info()[0],
                                           sys.exc_info()[1],
                                           sys.exc_info()[2]))
            self.forms.showMessageBox("Error", "Error", "%s" % message)
Esempio n. 3
0
#!/usr/bin/env kross
# -*- coding: utf-8 -*-

import Words

idx = 0
shapes = Words.shapeKeys()
for shapeId in shapes:
    frame = Words.addFrame("myshape", shapeId)
    if frame != None:
        #frame.setTextRunAround(tableframe.RunThrough)
        frame.setPosition(idx % 6 * 80 + 20, 100 * idx + 20)
        #frame.resize(160, 160)
        idx += 1