Example #1
0
 def customizeUi(self, default_channels):       
    
    
     #this will be a dictionnary with the same keys as self.channel_controls corresponding to list
     #of 'N_channel' control Qwidgets.
     self.channel_objects={}
     for name,item in self.channel_controls.items():
         self.channel_objects[name]=[]
     
     # create a layout within the blank "plot_holder" widget and put the 
     # custom matplotlib zoom widget inside it. This way it expands to fill
     # the space, and we don't need to customize the ui_recordsweep.py file
     self.gridLayout_2 = QtGui.QGridLayout(self.plot_holder)
     self.gridLayout_2.setMargin(0)
     self.gridLayout_2.setObjectName("gridLayout_2")
     
     self.mplwidget = MatplotlibZoomWidget(self.plot_holder)
     self.mplwidget.setObjectName("mplwidget") 
     self.gridLayout_2.addWidget(self.mplwidget, 0, 0, 1, 1)