Whoops sorry it would have been better to tell straight away. Ui_radarScopeFrame is a Qt designer generated class, as you would have guessed.
class ScopeFrame
(QWidget, Ui_radarScopeFrame
): def __init__(self, init_contacts, parent=None):
self.setupUi(self)
self.scene = RadarScene(init_contacts, self)
self.scopeView.setScene(self.scene)
## ... etc. ...
class ScopeFrame(QWidget, Ui_radarScopeFrame):
def __init__(self, init_contacts, parent=None):
QWidget.__init__(self, parent)
self.setupUi(self)
self.scene = RadarScene(init_contacts, self)
self.scopeView.setScene(self.scene)
## ... etc. ...
To copy to clipboard, switch view to plain text mode
Bookmarks