How to open screen from class without screen.

  • For example i have something like that:


    Python
    class ABC: 
         def __init__(self):
              self.Timer = eTimer()
              self.Timer.callback.append(self.startscreen)
              self.Timer.start(1000*60, False)
    
    
         def startscreen(self):
              #Here i want to open some screen


    I cant use self.session.open() because there's no session. How can i do that? It is possible to get current session maybe?

  • I have basic knowledge about that. I have just problem with this concrete situation. Can't find solutions. If you can show how to do that i ll be grateful.

  • Looks like you do not undarstand what im looking for.



    Please look at this there example what i want to do:





    How to open Onload(Screen) correctly?

  • Just pass the session to your classes (note the self.session = session calls). Your code should then probably look like this:


    Ich bin keine Hotline, daher kein Support per Mail oder PM.

    • Offizieller Beitrag

    1st: you cannot open a Screen without a session!!!
    2nd: you have to use session.open(Screen, *args) or session.openWithCallback(callback, Screen, *args) for openeing screens




    for convenience: http://pastebin.com/bwUfJWH4

    mfg ,
    Reichi

    Einmal editiert, zuletzt von Reichi ()