This commit is contained in:
恍兮惚兮 2024-07-19 10:51:56 +08:00
parent 16f296b841
commit 341e57ae2d

View File

@ -58,6 +58,9 @@ class LFocusCombo(FocusCombo, LBase):
for i in range(self.count()): for i in range(self.count()):
self.setItemText(i, _TR(self.__items[i])) self.setItemText(i, _TR(self.__items[i]))
def changeEvent(self, e: QEvent):
super(LFocusCombo, self).changeEvent(e)
class FocusFontCombo(QFontComboBox, FocusCombo): class FocusFontCombo(QFontComboBox, FocusCombo):
pass pass
@ -123,7 +126,7 @@ def getQMessageBox(
useok=True, useok=True,
usecancel=False, usecancel=False,
okcallback=None, okcallback=None,
cancelcallback=None cancelcallback=None,
): ):
msgBox = LMessageBox(parent) msgBox = LMessageBox(parent)
msgBox.setWindowTitle((title)) msgBox.setWindowTitle((title))