mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 08:44:15 +02:00
[root dialog] roolback: buttons style
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from PyQt5.QtGui import QIcon
|
from PyQt5.QtGui import QIcon
|
||||||
from PyQt5.QtWidgets import QInputDialog, QLineEdit, QDialogButtonBox, QPushButton
|
from PyQt5.QtWidgets import QInputDialog, QLineEdit
|
||||||
|
|
||||||
from bauh.api.abstract.view import MessageType
|
from bauh.api.abstract.view import MessageType
|
||||||
from bauh.commons.system import new_subprocess
|
from bauh.commons.system import new_subprocess
|
||||||
from bauh.view.qt import css
|
|
||||||
from bauh.view.qt.dialog import show_message
|
from bauh.view.qt.dialog import show_message
|
||||||
from bauh.view.util import resource
|
from bauh.view.util import resource
|
||||||
from bauh.view.util.translation import I18n
|
from bauh.view.util.translation import I18n
|
||||||
@@ -27,14 +26,6 @@ def ask_root_password(i18n: I18n):
|
|||||||
diag.setCancelButtonText(i18n['popup.button.cancel'].capitalize())
|
diag.setCancelButtonText(i18n['popup.button.cancel'].capitalize())
|
||||||
diag.resize(400, 200)
|
diag.resize(400, 200)
|
||||||
|
|
||||||
bts = diag.findChildren(QPushButton)
|
|
||||||
|
|
||||||
for bt in bts:
|
|
||||||
if bt.text() == i18n['popup.root.continue'].capitalize():
|
|
||||||
bt.setStyleSheet(css.OK_BUTTON)
|
|
||||||
|
|
||||||
bt.setIcon(QIcon())
|
|
||||||
|
|
||||||
for attempt in range(3):
|
for attempt in range(3):
|
||||||
|
|
||||||
ok = diag.exec_()
|
ok = diag.exec_()
|
||||||
|
|||||||
Reference in New Issue
Block a user