(self, widget)
return None
Returns the palette ID for the given palette widget.
Returns the palette ID for the given palette widget.
Returns the palette ID for the given palette widget .
def get_palette_id(self, widget):
        """Returns the palette ID for the given palette widget."""
        for palette_id in range(0, NUM_PALETTE_COLORS):
            if widget == self.get_palette_widget(palette_id):
                return palette_id
        return None
def get_palette_id ( self , widget ) : for palette_id in range ( 0 , NUM_PALETTE_COLORS ) : if widget == self . get_palette_widget ( palette_id ) : return palette_id return None