Skip to content

Commit

Permalink
Don't cut off the 'Reset' text
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish authored and dagewa committed Apr 14, 2021
1 parent 419342a commit 9b432b8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/dui/simpler_param_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,11 @@ def _get_all_direct_layout_widget_children(parent):


class ResetButton(QPushButton):
def __init__(self, parent=None):
super(ResetButton, self).__init__()
my_label = QLabel("Reset to default")
v_box = QVBoxLayout()
v_box.addWidget(my_label)
self.setLayout(v_box)
# self.show()
"""QPushButton with default text."""

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.setText("Reset to default")


class DefaultComboBox(QComboBox):
Expand Down

0 comments on commit 9b432b8

Please sign in to comment.