Hallo
Ich rufe in meinem Plugin den Dialog zum Anlegen eines AutoTimers mit folgendem Code auf, was auch problemlos funktioniert:
Python
from Plugins.Extensions.AutoTimer.AutoTimerEditor import addAutotimerFromEvent
addAutotimerFromEvent(self.session, event, service)
Allerdings möchte ich in meinem Plugin weiteren Code ausführen, wenn man den AutoTimer angelegt hat bzw. das Anlegen abgebrochen hat.
Daher habe ich das dann so mit openWithCallback versucht:
Python
from Plugins.Extensions.AutoTimer.AutoTimerEditor import addAutotimerFromEvent
self.session.openWithCallback(self.finishedaddAutoTimer, addAutotimerFromEvent, self.session, event, service)
Leider kommt dabei ein GS ("modal open are allowed only from a screen which is modal!").
Wie kann man die AutoTimer-Funktion addAutotimerFromEvent mit einer Callback-Funktion aufrufen?
Danke schon mal.