mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 20:35:13 +00:00
optional icon in installwizard question
This commit is contained in:
parent
f4817d771f
commit
bac2c8175c
1 changed files with 13 additions and 4 deletions
|
@ -194,20 +194,29 @@ class InstallWizard(QDialog):
|
|||
return
|
||||
|
||||
|
||||
def show_message(self, msg):
|
||||
def show_message(self, msg, icon=None):
|
||||
vbox = QVBoxLayout()
|
||||
self.set_layout(vbox)
|
||||
if icon:
|
||||
logo = QLabel()
|
||||
logo.setPixmap(icon)
|
||||
vbox.addWidget(logo)
|
||||
vbox.addWidget(QLabel(msg))
|
||||
vbox.addStretch(1)
|
||||
vbox.addLayout(close_button(self, _('Next')))
|
||||
self.set_layout(vbox)
|
||||
if not self.exec_():
|
||||
return None
|
||||
|
||||
def question(self, msg):
|
||||
|
||||
def question(self, msg, icon=None):
|
||||
vbox = QVBoxLayout()
|
||||
self.set_layout(vbox)
|
||||
if icon:
|
||||
logo = QLabel()
|
||||
logo.setPixmap(icon)
|
||||
vbox.addWidget(logo)
|
||||
vbox.addWidget(QLabel(msg))
|
||||
vbox.addStretch(1)
|
||||
self.set_layout(vbox)
|
||||
vbox.addLayout(ok_cancel_buttons(self, _('OK')))
|
||||
if not self.exec_():
|
||||
return None
|
||||
|
|
Loading…
Add table
Reference in a new issue