FenixFly / PyQGLViewer

PyQGLViewer is a set of Python bindings for the libQGLViewer C++ library which extends the Qt framework with widgets and tools that eases the creation of OpenGL 3D viewers.

Home Page:http://pyqglviewer.gforge.inria.fr/wiki/doku.php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyQGLViewer

Build Status Build status

Presentation

PyQGLViewer is a set of Python bindings for the libQGLViewer C++ library which extends the Qt framework with widgets and tools that eases the creation of OpenGL 3D viewers.

License

PyQGLViewer is licensed under the GPL.

Install

A conda version compatible with PyQt5 and Python 3 is available in the channel fredboudon:

conda install pyqglviewer -c fredboudon -c conda-forge

Usage

A simple example of use of PyQGLViewer is

from PyQt5.QtWidgets import *
from PyQGLViewer import *
from qgllogo import draw_qgl_logo

class Viewer(QGLViewer):
    def __init__(self,parent = None):
        QGLViewer.__init__(self,parent)
    def draw(self):
        draw_qgl_logo()
  
def main():
    qapp = QApplication([])
    viewer = Viewer()
    viewer.setWindowTitle("simpleViewer")
    viewer.show()
    qapp.exec_()

if __name__ == '__main__':
    main()

Development

The sources are hosted on GitHub.

To compile the project:

python configureQt5.py
make
python setup.py install

Issues

You can use the PyQGLViewer project issue tracking tool.

About

PyQGLViewer is a set of Python bindings for the libQGLViewer C++ library which extends the Qt framework with widgets and tools that eases the creation of OpenGL 3D viewers.

http://pyqglviewer.gforge.inria.fr/wiki/doku.php


Languages

Language:Python 89.6%Language:NSIS 8.6%Language:Shell 1.5%Language:Batchfile 0.3%