Quote:
Originally Posted by DaltonST
Apparently Calibre 2.2.0 broke: from calibre.gui2.dialogs.message_box_ui import Ui_Dialog .
Going from Qt4 to Qt5 there was plenty of warning. If truly Calibre 2.2.0 intended to remove message_box_ui, then it is a lick on Calibre to do so with no prior notice.
Any plugin that uses from calibre.gui2.dialogs.message_box_ui import Ui_Dialog will fail.
|
And that is actually the plugins fault. You should not be using this directly. It is code generated from message_box.ui during build. Or, if you are running from source, it will be generated during startup.
You should change your code to use:
calibre.gui2.dialogs.message_box import MessageBox
Or write your own message box if it isn't suitable. But, look through the definitions in calibre.gui2.__init__. There are a lot of different message boxes in it you could use.