Problem with MessageBox dispaying on the end of Screen initialisation

  • Hi,


    On my application I had had code as bellow:



    Line 22 of code had made GreenScreen:


    I assume that it's error connected with screen initialization so I changed it on:


    Now I've got no GreenScreen but program fall into not expected by me case (Both Application skin and MessageBox are hidden - not shown, on TV I see streamed by satellite TV program, exit key which on my application is to exit don't work).


    I assume that I can't check if screen initialisation is finished and in this moment correctly execute " self.session.openWithCallback(self.call_back_AU, MessageBox, _("Do You wish to do ?"), MessageBox.TYPE_YESNO)" command.


    Can someone give advice how to correct my second code?

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

  • Check out the kiddytimer plugin at schwerkraft. There I do exactly the same. You have to append your messagebox to notifications, as they are executed only when the screen is complete....


    Ah no, that would be for autostart: in your case, you can use the onloaded onShown event and attach your funtion that shows the messagebox there...
    i have both in code of kiddytimer in KTmain... (askForActivation sub and in Kiddytimerscreen)

    2 Mal editiert, zuletzt von Tode ()