@classmethod
    def dropdown_editor(cls, item, pos, **kwargs):
        self = cls(item, **kwargs)
        self.setWindowFlags(Qt.Tool | Qt.FramelessWindowHint)

        pos = self.mapFromGlobal(pos)
        self.move(pos)
        if self.exec_() == self.Accepted:
            self.update_style()
Create a dropdown-style modal editor to edit the style of a
dataset/ETHPy150Open glue-viz/glue/glue/core/qt/style_dialog.py/StyleDialog.dropdown_editor