Exemple #1
0
 def updateInstrumentPanel(self):
     width = Gdk.Screen.width() - self.rightBox.get_size_request()[0]
     if self.instrumentPanel is None:
         self.instrumentPanel = InstrumentPanel()
         # Insert into the leftBox once on creation.
         self.leftBox.pack_start(self.instrumentPanel, True, True, 0)
     self.instrumentPanel.configure(self.setInstrument,
             self.playInstrumentNote, False, self.micRec, width=width)
     self.instrumentPanel.load()
    def updateInstrumentPanel(self):
        if self.instrumentPanel is None:
            self.instrumentPanel = InstrumentPanel()
            self.leftBox.pack_start(self.instrumentPanel)

        width = gtk.gdk.screen_width() - self.rightBox.get_size_request()[0]
        self.instrumentPanel.configure(self.setInstrument,
                                       self.playInstrumentNote,
                                       False,
                                       self.micRec,
                                       width=width)

        self.instrumentPanel.load()