Skip to content

Commit 5e418b7

Browse files
committed
Make YAML creation message wider to see the path more clear
1 parent dc72ec3 commit 5e418b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/aux_windows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def __init__(self, parent_ui=None):
175175

176176
super(dialog_Ui, self).__init__()
177177
self.dialog_window = Ui_Dialog()
178+
self.original_width = self.geometry().width()
178179
self.parent_ui = parent_ui
179180
self.dialog_window.setupUi(self)
180181
self.setWindowFlags(QtCore.Qt.FramelessWindowHint)
@@ -195,6 +196,7 @@ def mousePressEvent(self, event):
195196
self.dragPos = event.globalPos()
196197

197198
def dialog_constrict(self, message, reason):
199+
self.resize(self.original_width,self.geometry().height())
198200
self.dialog_window.window_des_label.setText("Error")
199201
self.dialog_window.icon_label.setPixmap(self.upbar_icon[0])
200202
if self.signals_created:
@@ -218,6 +220,7 @@ def dialog_constrict(self, message, reason):
218220
self.dialog_window.error_message_label.setText(m)
219221
self.dialog_window.go_to_correct_bn.clicked.connect(self.close)
220222
elif reason in ["inform_user", "inform_user_and_go"]:
223+
self.resize(0.9*self.parent_ui.width(),self.geometry().height())
221224
self.dialog_window.error_message_label.setWordWrap(True)
222225
self.dialog_window.icon_label.setPixmap(self.upbar_icon[1])
223226
self.dialog_window.window_des_label.setText("Information")

0 commit comments

Comments
 (0)