replyLabel->setMinimumWidth(400);
replyLabel->setMinimumHeight(200);
replyLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
-// replyLabel->setWordWrap(true);
-// replyLabel->setReadOnly(true);
replyLabel->setFrameStyle(QFrame::NoFrame);
QPalette pal = palette();
pal.setColor(QPalette::Base, Qt::transparent);
+ pal.setColor(QPalette::Text, pal.color(QPalette::ButtonText));
replyLabel->setPalette(pal);
// replyLabel->setTextBackgroundColor(Qt::black);
- replyLabel->setTextColor(Qt::white);
+// replyLabel->setTextColor(Qt::white);
replyLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
numberLabel = new QLabel("");
def ussd_released (message, str):
global skip
- if not skip:
+ if not skip and not message.empty():
subprocess.Popen(["qussd", message])
skip = False
return True