def __init__(self, parent=None): dbg_print ("Score.__init__", parent) widgetWithMenu.__init__(self) QtGui.QGraphicsView.__init__(self, parent) self.svgItem = None self.backgroundItem = None self.outlineItem = None self.image = QtGui.QImage() self.setScene(MyScene(self)) self.setTransformationAnchor(QtGui.QGraphicsView.AnchorUnderMouse) self.setDragMode(QtGui.QGraphicsView.ScrollHandDrag) self.which = 0 # default to show first generated svg until we know better. self.svgDigests = [] dbg_print ("!Score.__init__", parent)
def __init__(self, dock=None): dbg_print ("AbcEditor.__init__", dock) widgetWithMenu.__init__(self) Editor.__init__(self) #font = QtGui.QFont() font = self.font() font.setPointSize(10) self.setFont(font) self.setCursorWidth(2) self.setWindowTitle('title') self.textChanged.connect(self.handleTextChanged) self.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap) self.dock = dock Common.timer.timeout.connect(self.countDown) self.cursorPositionChanged.connect( self.handleCursorMove) self.originalText = None
def __init__(self, dock=None): QtGui.QTabWidget.__init__(self) widgetWithMenu.__init__(self)