+newheight = wsize[1]
+window_posx = orgpos.x() + (orgwidth - newwidth)/2
+window_posy = orgpos.y() + (orgheight - newheight)/2
+if (150 > window_posy):
+ window_posy = 150
+self.instance.move(ePoint(window_posx, window_posy))
+ </applet>
+ </screen>
+ """
+
+ def __init__(self, session, replytext_1="", replytext_2="", type = MessageBox.TYPE_YESNO, timeout = -1, close_on_any_key = False, default = True, enable_input = True, msgBoxID = None):
+ self.replytext_1 = replytext_1
+ self.replytext_2 = replytext_2
+ MessageBox.__init__(self,session,self.replytext_1 + "\n" + self.replytext_2,type,timeout,close_on_any_key,default,enable_input,msgBoxID)
+ if type == MessageBox.TYPE_YESNO:
+ self.list = [ (_("Keep"), 0), (_("Restore"), 1) ]
+ self["list"].setList(self.list)
+