Module ImportFrom alias alias alias alias Expr Str Import alias Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpDiv Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr
N/A __future__ absolute_import division print_function unicode_literals N/A  Demo showing use of pi3d as a widget on a PyQt window. See PyQt documentation
for details on how to use that.
 N/A sys N/A demo N/A pi3d N/A numpy np PyQt4 QtGui PyQt4 QtCore N/A N/A W H N/A 640 480 N/A FPS 20 QtWindow N/A N/A QtGui QWidget N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super QtWindow self __init__ N/A  layer set to -128 to hide behind X desktop
     N/A N/A self DISPLAY N/A N/A N/A pi3d Display create w W h H layer -128 N/A shader N/A N/A pi3d Shader uv_light N/A tex N/A N/A pi3d Texture textures/PATRN.PNG N/A N/A self cube N/A N/A pi3d Cuboid z 2 N/A N/A N/A N/A self cube set_draw_details shader N/A tex N/A N/A N/A self cube show_flag True N/A N/A N/A self cube last_x None N/A N/A N/A self cube last_y None N/A N/A N/A self initUI N/A initUI N/A N/A self N/A N/A N/A button1 N/A N/A QtGui QPushButton Rotate X 5deg N/A N/A N/A N/A button1 clicked connect N/A self rotX N/A button2 N/A N/A QtGui QPushButton Rotate Y 15deg N/A N/A N/A N/A button2 clicked connect N/A self rotY N/A button3 N/A N/A QtGui QPushButton Rotate Z 20deg N/A N/A N/A N/A button3 clicked connect N/A self rotZ N/A message N/A N/A QtGui QLabel Left click and
drag on image or
click these buttons N/A vbox N/A N/A QtGui QVBoxLayout N/A N/A N/A vbox addWidget button1 N/A N/A N/A vbox addWidget button2 N/A N/A N/A vbox addWidget button3 N/A N/A N/A vbox addWidget message N/A N/A N/A vbox addStretch 1 N/A N/A self img N/A N/A QtGui QLabel image N/A a N/A N/A np zeros N/A H W 4 dtype N/A np uint8 N/A im N/A N/A QtGui QImage a W H N/A N/A QtGui QImage Format_RGB888 N/A N/A N/A N/A self img setPixmap N/A N/A N/A QtGui QPixmap fromImage im N/A hbox N/A N/A QtGui QHBoxLayout N/A N/A N/A hbox addLayout vbox N/A N/A N/A hbox addWidget N/A self img N/A N/A N/A hbox addStretch 1 N/A N/A N/A self setLayout hbox N/A N/A N/A self setWindowTitle PyQT4 pi3d demo N/A N/A N/A self show N/A pi3d_loop N/A N/A self N/A N/A N/A N/A N/A N/A self DISPLAY loop_running N/A N/A N/A self cube show_flag N/A N/A N/A N/A N/A self cube draw N/A im N/A N/A QtGui QImage N/A N/A pi3d screenshot W H N/A N/A QtGui QImage Format_RGB888 N/A N/A N/A N/A self img setPixmap N/A N/A N/A QtGui QPixmap fromImage im N/A N/A N/A self cube show_flag False N/A rotX N/A N/A self N/A N/A N/A N/A N/A N/A self cube rotateIncX 5.0 N/A N/A N/A self cube show_flag True N/A rotY N/A N/A self N/A N/A N/A N/A N/A N/A self cube rotateIncY 15.0 N/A N/A N/A self cube show_flag True N/A rotZ N/A N/A self N/A N/A N/A N/A N/A N/A self cube rotateIncZ 20.0 N/A N/A N/A self cube show_flag True N/A mousePressEvent N/A N/A self QMouseEvent N/A N/A N/A cursor N/A N/A QtGui QCursor N/A N/A N/A self cube last_x N/A N/A N/A N/A cursor pos x N/A N/A N/A self cube last_y N/A N/A N/A N/A cursor pos y N/A mouseMoveEvent N/A N/A self QMouseEvent N/A N/A N/A cursor N/A N/A QtGui QCursor N/A x N/A N/A N/A N/A cursor pos x N/A y N/A N/A N/A N/A cursor pos y N/A N/A N/A N/A self cube rotateIncY N/A N/A N/A self cube last_x x N/A N/A N/A N/A self cube rotateIncX N/A N/A N/A self cube last_y y N/A N/A N/A self cube last_x x N/A N/A N/A self cube last_y y N/A N/A N/A self cube show_flag True N/A N/A N/A app N/A N/A QtGui QApplication N/A sys argv N/A win N/A QtWindow N/A timer N/A N/A QtCore QTimer N/A N/A N/A N/A timer timeout connect N/A win pi3d_loop N/A msfps N/A int N/A 1000 FPS N/A N/A N/A timer start msfps N/A N/A N/A sys exit N/A N/A app exec_