
    eb                     p   d Z ddlZddlZddlZ ej                          ej                  j                  ej                  j                  e
            Zej                  j                  ed      Zej                  j                  e      \  ZZ G d de      Z e       Zedk(  r ej(                          yy)aD  
Simple example of loading UI template created with Qt Designer.

This example uses uic.loadUiType to parse and load the ui at runtime. It is also
possible to pre-compile the .ui file using pyuic (see VideoSpeedTest and 
ScatterPlotSpeedTest examples; these .ui files have been compiled with the
tools/rebuildUi.py script).
    NzdesignerExample.uic                       e Zd Zd Zd Zy)
MainWindowc                 6   t         j                  |        | j                  d       t               | _        | j                  j                  |        | j                  j                  j                  j                  | j                         | j                          y )Nzpyqtgraph example: Qt Designer)TemplateBaseClass__init__setWindowTitleWindowTemplateuisetupUiplotBtnclickedconnectplotshowselfs    D/usr/lib/python3/dist-packages/pyqtgraph/examples/designerExample.pyr   zMainWindow.__init__   sd    ""4(<= !"''		2		    c                     | j                   j                  j                  t        j                  j	                  d      d       y )Nd   )sizeT)clear)r
   r   nprandomnormalr   s    r   r   zMainWindow.plot#   s/    "))***4DAr   N)__name__
__module____qualname__r   r    r   r   r   r      s    	Br   r   __main__)__doc__osnumpyr   	pyqtgraphpgmkQApppathdirnameabspath__file__joinuiFileQt
loadUiTyper	   r   r   winr   execr   r   r   <module>r1      s    
   			 
wwrwwx01	d0	1$&EE$4$4V$< !!B" B lzBGGI r   