def __create_toolbar_button(btn_icon, btn_text, btn_cmd, btn_checkable):
     new_button = StatusToolbarButton(btn_icon)
     new_button.setToolTip(btn_text)
     new_button.setStatusTip(btn_text)
     new_button.clicked.connect(btn_cmd)
     new_button.setCheckable(btn_checkable)
     return new_button
Example #2
0
def create_status_button(ico, txt, cmd, is_checkable):
    btn = StatusToolbarButton(ico)
    btn.setToolTip(txt)
    btn.setStatusTip(txt)
    if cmd:
        btn.clicked.connect(cmd)
    btn.setCheckable(is_checkable)
    return btn
 def __create_toolbar_button(btn_icon, btn_text, btn_cmd, btn_checkable):
     new_button = StatusToolbarButton(btn_icon)
     new_button.setToolTip(btn_text)
     new_button.setStatusTip(btn_text)
     new_button.clicked.connect(btn_cmd)
     new_button.setCheckable(btn_checkable)
     return new_button
Example #4
0
def create_status_button(ico, txt, cmd, is_checkable):
        btn = StatusToolbarButton(ico)
        btn.setToolTip(txt)
        btn.setStatusTip(txt)
        if cmd:
            btn.clicked.connect(cmd)
        btn.setCheckable(is_checkable)
        return btn