https://github.com/yjg30737/pyqt-music-sheet-graphics-view
PyQt music sheet graphics view (only music sheet lines exist currently)
https://github.com/yjg30737/pyqt-music-sheet-graphics-view
pyqt pyqt-examples pyqt-music-sheet pyqt-qgraphicsview pyqt-tutorial pyqt5 pyqt5-examples pyqt5-music-sheet pyqt5-qgraphicsview pyqt5-tutorial python python3 python37 qgraphicsview qline qt
Last synced: 3 months ago
JSON representation
PyQt music sheet graphics view (only music sheet lines exist currently)
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-music-sheet-graphics-view
- Owner: yjg30737
- License: mit
- Created: 2021-12-11T02:02:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-11T02:14:31.000Z (over 3 years ago)
- Last Synced: 2024-12-29T08:42:11.759Z (5 months ago)
- Topics: pyqt, pyqt-examples, pyqt-music-sheet, pyqt-qgraphicsview, pyqt-tutorial, pyqt5, pyqt5-examples, pyqt5-music-sheet, pyqt5-qgraphicsview, pyqt5-tutorial, python, python3, python37, qgraphicsview, qline, qt
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-music-sheet-graphics-view
PyQt music sheet graphics view (only music sheet lines exist currently)## Requirements
PyQt5 >= 5.8## Setup
```pip3 install git+https://github.com/yjg30737/pyqt-music-sheet-graphics-view.git --upgrade```## Feature
* Using ```setMusicSheet(bars_group_cnt: int = 5, bars_group_height: int = 40)``` to set the count and height of group of bars.## Example
Code Example
```python
import sys
from PyQt5.QtWidgets import QWidget, QApplication, QGridLayout
from pyqt_music_sheet_graphics_view.musicSheetGraphicsView import MusicSheetGraphicsViewclass MusicSheetGenerator(QWidget):
def __init__(self):
super().__init__()
self.__view = ''
self.__initUI()def __initUI(self):
self.__view = MusicSheetGraphicsView()
self.__view.setMusicSheet()
lay = QGridLayout()
lay.addWidget(self.__view)self.setLayout(lay)
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = MusicSheetGenerator()
ex.show()
sys.exit(app.exec_())
```Result
