Пример #1
0
def button_make_naked(
        but: QtWidgets.QAbstractButton) -> QtWidgets.QAbstractButton:
    ''' Just applied a bunch of things to a button to "make it naked"
    which is the look we use for the lookup results and various other odds and
    ends. Returns the button passed to it. '''
    but.setStyleSheet(naked_button_style())
    but.setSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
    return but