Hello Jörg
Your item.song is a dbitem.song instance and as a such it does not
know
in which db it is stored. Correspondingly, it cannot update itself, and a rescan method does not exist. You need an item.song instance to do that. Normally, this is what you deal with anyway, so this should not be a problem.
I guess I can replace it with self.mainscreen.filelistwin.items.rescanselection() as long as the editor does not run in a separate thread. It does not seem to work, but then neither does hitting 'u' on the song, need to check that.
I also have a proposition for the plugin framework: Would it be
possible
to define an event to subscribe to which already includes a list of keys?
I.e.
self.channel.subscribe(events.keypressed([ord('e'),ord('E'),self.keypressed)
instead of self.channel.subscribe(events.keypressed,self.keypressed) and the check at the beginning of the plugin?
So far, when you subscribe to an event, the corresponding class has to be used and the event dispatcher code is correspondingly trivial. In the very beginning, I thought I should add something like a filter, but since checking at the begin of the event handler method is so simple, I didn´t follow this idea further.
Ok. "Don't optimize unless you need to"... Makes sense. It is not as there were that many plugins anyway...
Best regards to all, and may the fog outside lift soon!
Hey, here in Basel we have the most beautiful weather, I really cannot complain :-)
Jörg
Darn (checking Webcam Barfiesserplatz) indeed. What are you doing inside then? Isch jo immer no Mäss! Ich gang jetzt in Nebel use... ha jo immer scho gwüsst, dass uf Ziri zie nid guet chunnt... -kurt PS: Sorry for the re-posting
_______________________________________________ PyTone-users mailing list PyTone-users@luga.de https://www.luga.de/mailman/listinfo/pytone-users