rdkit.sping.Qt.pidQt4 module — The RDKit 2016.09.1 documentation

# rdkit.sping.Qt.pidQt4 module

piddleQt

This module implements the PIDDLE/Sping API for a Qt4 canvas

Bits have been shamelessly cobbled from piddleSVG.py

Greg Landrum (glandrum@users.sourceforge.net)

class `rdkit.sping.Qt.pidQt4.` `QCanvasRotText`(txt, canvas, angle=0)

  Bases: `object`

  used to draw (UGLY) rotated text

  `draw`(qP)

class `rdkit.sping.Qt.pidQt4.` `QtCanvas`(scene, size=None, name='QtCanvas')

  Bases: `rdkit.sping.pid.Canvas`

  `clear`()
  `drawImage`(image, x, y, **kwargs)
  `drawLine`(x1, y1, x2, y2, color=None, width=None, dash=None, **kwargs)

    Draw a straight line between x1,y1 and x2,y2.

  `drawPolygon`(pointlist, edgeColor=None, edgeWidth=None, fillColor=Color(-1.00, -1.00, -1.00), closed=0, dash=None, **kwargs)

    drawPolygon(pointlist) – draws a polygon pointlist: a list of (x,y) tuples defining vertices

  `drawString`(s, x, y, font=None, color=None, angle=0, **kwargs)
  `flush`()
  `fontAscent`(font=None)
  `fontDescent`(font=None)
  `save`(file=None, format=None)
  `stringBox`(s, font=None)

    Return the logical width and height of the string if it were drawn in the current font (defaults to self.font).

  `stringWidth`(s, font=None)

    Return the logical width of the string if it were drawn in the current font (defaults to self.font).

`rdkit.sping.Qt.pidQt4.` `dashtest`(canvas)

`rdkit.sping.Qt.pidQt4.` `test`(canvas)