The following code will fail:
from taurus.external.qt import Qt from taurus.qt.qtgui.util.ui import UILoadable @UILoadable class BaseWidget(Qt.QWidget): def __init__(self, parent=None): super(BaseWidget, self).__init__(parent) self.loadUi() @class MyWidget(BaseWidget): pass app = Qt.QApplication([]) w = MyWidget() w.show() app.exec_()
because loadUi will look for a UI file called MyWidget.ui instead of BaseWidget.ui.
patch sent by Tiago to devel list applied
Ticket moved from /p/sardana/tickets/292/
Can't be converted: