40 else: |
40 else: |
41 self.selectionComboBox.addItem(entry) |
41 self.selectionComboBox.addItem(entry) |
42 |
42 |
43 self.on_selectionComboBox_currentTextChanged(self.selectionComboBox.itemText(0)) |
43 self.on_selectionComboBox_currentTextChanged(self.selectionComboBox.itemText(0)) |
44 |
44 |
|
45 if message: |
|
46 self.messageLabel.setText(message) |
|
47 if title: |
|
48 self.setWindowTitle(title) |
|
49 |
45 msh = self.minimumSizeHint() |
50 msh = self.minimumSizeHint() |
46 self.resize(max(self.width(), msh.width()), msh.height()) |
51 self.resize(max(self.width(), msh.width()), msh.height()) |
47 |
52 |
48 @pyqtSlot(str) |
53 @pyqtSlot(str) |
49 def on_selectionComboBox_currentTextChanged(self, txt): |
54 def on_selectionComboBox_currentTextChanged(self, txt): |