def create_rhythm_image(rhythm):
"""
rhythm : a string like 'c8 c8' or 'c8 c16 c16'
The image returned is shown.
"""
im = Gtk.Image()
im.set_from_file(os.path.join('graphics', 'rhythm-%s.png' % (rhythm.replace(" ", ""))))
im.show()
return im
评论列表
文章目录