pyqtgraph/doc/source/widgets/make

32 lines
465 B
Plaintext
Raw Normal View History

files = """CheckTable
ColorButton
DataTreeWidget
FileDialog
GradientWidget
GraphicsLayoutWidget
GraphicsView
HistogramLUTWidget
JoystickButton
MultiPlotWidget
PlotWidget
ProgressDialog
RawImageWidget
SpinBox
TableWidget
TreeWidget
VerticalLabel""".split('\n')
for f in files:
print f
fh = open(f.lower()+'.rst', 'w')
fh.write(
"""%s
%s
.. autoclass:: pyqtgraph.%s
:members:
.. automethod:: pyqtgraph.%s.__init__
""" % (f, '='*len(f), f, f))