pyqtgraph/pyqtgraph/opengl/__init__.py

26 lines
1.7 KiB
Python
Raw Permalink Normal View History

2012-05-11 22:05:41 +00:00
from .GLViewWidget import GLViewWidget
## dynamic imports cause too many problems.
2013-12-23 14:46:54 +00:00
#from .. import importAll
#importAll('items', globals(), locals())
2021-04-17 05:57:43 +00:00
from .items.GLGraphItem import *
from .items.GLGridItem import *
from .items.GLBarGraphItem import *
from .items.GLScatterPlotItem import *
from .items.GLMeshItem import *
from .items.GLLinePlotItem import *
from .items.GLAxisItem import *
from .items.GLImageItem import *
from .items.GLSurfacePlotItem import *
from .items.GLBoxItem import *
from .items.GLVolumeItem import *
Add "GLTextItem" (#1776) * Add GLTextItem * Fixed DocString. * Delete unnecessary function. * Add `from .items.GLTextItem import *` * Add an example. * [Combines two `isinstance()` into one.](https://github.com/pyqtgraph/pyqtgraph/pull/1776#discussion_r633046120) * [Combines two `isinstance()` into one.](https://github.com/pyqtgraph/pyqtgraph/pull/1776#discussion_r633046120) * [The long code has been broken up into separate lines.](https://github.com/pyqtgraph/pyqtgraph/pull/1776#discussion_r633046234) * [Moved `pos`, `color`, `text`, and `font` to the `__init__` method.](https://github.com/pyqtgraph/pyqtgraph/pull/1776#discussion_r633047216) * Add `import initExample` and fix `mkQApp().exec_()` to `pg.exec()` (https://github.com/pyqtgraph/pyqtgraph/pull/1776#discussion_r633046878, https://github.com/pyqtgraph/pyqtgraph/pull/1776#discussion_r633046781) * Fix `pg.exec()` to `pg.mkQApp().exec()` * Revert "Fix `pg.exec()` to `pg.mkQApp().exec()`" This reverts commit 67d397d8033f3fe0cc27468ea96fe61dc29cc78b. * Remove type-hints. * Fix `glColor4d(float(self.color[0]), float(self.color[1]), float(self.color[2]), float(self.color[3]))` to `glColor4d(*self.color)` * Add `value = fn.glColor(value)` * Remove debug print. * Add GLGridItem and GLAxisItem * Remove if-check for "color" argument * Draw text without using GLUT. * Divide the text position by the device pixel ratio * Fixed bare exceptions to ValueError and TypeError. * Add 'GLTextItem.py' to utils.py. * Fixed a bare exception to ArgumentErrror. * Add `__all__ = ['GLTextItem']`
2021-06-05 15:19:54 +00:00
from .items.GLTextItem import *
from .items.GLGradientLegendItem import *
2013-07-03 21:52:16 +00:00
from .MeshData import MeshData
## for backward compatibility:
#MeshData.MeshData = MeshData ## breaks autodoc.
2013-07-03 21:52:16 +00:00
from . import shaders