addAutotimerFromEvent mit CallBack-Funktion ?

  • 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.

    Gruß Sven (aka Dreamy)


    DM920 mit unstable OE2.5 DP
    One mit unstable OE2.6 DP