Therefore it is better create separate window (Screen) for this message in the plugin...
I'm trying to do it, but my knownledge of python is not enough...
I got it using messagebox
self.session.open(MessageBox, _(hh), MessageBox.TYPE_INFO, timeout = 6)
But window was small/short.
Variable hh has all text (the same which is saved at /tmp folder) , so I assume I have to create a function which creates a new window, but I have to pass it some arguments.
I have added the following...
class Result(Screen): skin = """ <screen position="center,center" size="460,450" title="Results" > <widget name="myText" position="10,10" size="450,400" font="Regular;20"/> </screen>""" def __init__(self, session, args = None): self.session = session Screen.__init__(self, session) self["myText"] = Label(_(Screen)) self["myActionMap"] = ActionMap(["SetupActions"], { "ok": self.close }, -1)
Then I should call it when it finishes writing file to /tmp folder... and pass it the hh information
. . . . fi.write(hh) fi.close() self.session.open(Result, hh)
I'm doing something wrong, I've spent 2 days looking for everywhere and looking at some code, but I don't find it.