
OK. i'm done with python pyQt4 for a while. stuff that i experimented with is available at
http://digitalaphasia.com/python-scripts/
One of the python scripts is a bezier/cubic spline drawing interface, which when you are done, (hit S ) a spline.txt will appear in the same directory as the script with pyQt code that was used to produce your created spline. i hope to one day find a use for it.. i have been sourcing a few thesis' about constructing a programming language for typeface definitions. Maybe a semi automatic modular type creator program.. is in the books.
One of the python scripts is a bezier/cubic spline drawing interface, which when you are done, (hit S ) a spline.txt will appear in the same directory as the script with pyQt code that was used to produce your created spline. i hope to one day find a use for it.. i have been sourcing a few thesis' about constructing a programming language for typeface definitions. Maybe a semi automatic modular type creator program.. is in the books.
my notes:
dir(QtGui.QPainter) >>>
'background' ---- 'drawArc', 'drawChord', 'drawConvexPolygon', 'drawEllipse', 'drawImage', 'drawLine', 'drawLines', 'drawPath', 'drawPicture', 'drawPie', 'drawPixmap', 'drawPoint', 'drawPoints', 'drawPolygon', 'drawPolyline', 'drawRect', 'drawRects', 'drawRoundRect', 'drawRoundedRect', 'drawText', 'drawTiledPixmap' ---- 'begin','end', ---- 'fillPath', fillRect',
'setOpacity', 'setPen',
dir(QtGui.QPainter.drawPolyline())
first argument of unbound method must have type 'QPainter'
QPainter.drawPolyline(QPointF, ...):
QPainter.drawPolyline(QPolygonF):
QPainter.drawPolyline(QPoint, ...):
QPainter.drawPolyline(QPolygon):
dir(QtGui.QPolygonF) >>>
----'append', 'at', 'boundingRect', 'clear', 'contains', 'containsPoint', 'count', 'data', 'fill', 'first', 'indexOf', 'insert', 'intersected', 'isClosed', 'isEmpty', 'last', 'lastIndexOf', 'mid', 'prepend', 'remove', 'replace', 'size', 'subtracted', 'toPolygon', 'translate', 'translated', 'united', 'value'
dir(QtGui.QPen) >>>
'brush', 'capStyle', 'color', 'dashOffset', 'dashPattern', 'isCosmetic', 'isSolid', 'joinStyle', 'miterLimit', 'setBrush', 'setCapStyle', 'setColor', 'setCosmetic', 'setDashOffset', 'setDashPattern', 'setJoinStyle', 'setMiterLimit', 'setStyle', 'setWidth', 'setWidthF', 'style', 'width', 'widthF']
Draws arc inside the rect r with start angle a and arc length alen.
first argument of unbound method must have type 'QPainter'
QPainter.drawArc(QRectF, int, int):
QPainter.drawArc(QRect, int, int):
QPainter.drawArc(int, int, int, int, int, int):
dir(QtCore) -abbridged-
'QByteArray','QChar','QDate', 'QDateTime', 'QEasingCurve', 'QEvent',
'QLine', 'QLineF', 'QLocale', 'QMargins', 'QObject', 'QPauseAnimation', 'QPersistentModelIndex', 'QPluginLoader', 'QPoint', 'QPointF', 'QRect', 'QRectF', 'QSize', 'QSizeF', 'QString', 'QStringList', 'QStringMatcher', 'QStringRef', 'qRound', 'qRound64', 'qSetFieldWidth', 'qSetPadChar', 'qSetRealNumberPrecision', 'qUncompress',
No comments:
Post a Comment