... | ... | @@ -73,7 +73,13 @@ LD\_EXPORT\_PATH: |
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu"
|
|
|
```
|
|
|
|
|
|
Append this line to your `~/.profile` to make it permanent.
|
|
|
You might will also need to tell `GObject Introspection` where to find the library typelib:
|
|
|
|
|
|
```
|
|
|
export GI_TYPELIB_PATH=/usr/local/lib/x86_64-linux-gnu/girepository-1.0
|
|
|
```
|
|
|
|
|
|
Append these lines to your `~/.profile` to make it permanent.
|
|
|
|
|
|
Usage
|
|
|
-----
|
... | ... | @@ -90,7 +96,7 @@ gi.require_version('GtkMusic', '0.4') |
|
|
|
|
|
from gi.repository import Gtk, Gdk, GtkMusic
|
|
|
|
|
|
def note_pressed(sender, widget, event, midi_code):
|
|
|
def note_pressed(widget, event, midi_code):
|
|
|
print('You pressed the note with MIDI code %d!' % midi_code)
|
|
|
|
|
|
win = Gtk.Window()
|
... | ... | |