Show
Ignore:
Timestamp:
12/01/09 14:49:23 (11 years ago)
Author:
arnonym
Message:

Minor gui stuff: Smaller names for the mixer.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py

    r1709 r1740  
    174174        layout = QtGui.QGridLayout(self) 
    175175        self.number = number 
    176         if name is not "": 
     176        if name != "": 
    177177            name = "\n(%s)" % name 
    178178        self.name = name 
    179179        self.lbl = QtGui.QLabel(self) 
     180        self.lbl.setAlignment(Qt.Qt.AlignCenter) 
    180181        layout.addWidget(self.lbl, 0, 0, 1, 2) 
    181182        self.hideChannel(False) 
     
    190191    def hideChannel(self, hide): 
    191192        if hide: 
    192             self.lbl.setText("Ch. %i" % self.number); 
     193            self.lbl.setText("%i" % self.number); 
    193194        else: 
    194195            self.lbl.setText("Ch. %i%s" % (self.number, self.name))