comparison src/browser/libervia_main.py @ 913:58f611481e6d

server, browser: removed deprecated methods which have been removed from backend, and associated code
author Goffi <goffi@goffi.org>
date Sun, 28 Aug 2016 19:25:52 +0200
parents e8b133b77aa4
children 0c0551967bdf
comparison
equal deleted inserted replaced
912:1ced5b522ae2 913:58f611481e6d
597 wid = self.widgets.getOrCreateWidget(class_, target, *args, **kwargs) 597 wid = self.widgets.getOrCreateWidget(class_, target, *args, **kwargs)
598 self.addWidget(wid) 598 self.addWidget(wid)
599 self.setSelected(wid) 599 self.setSelected(wid)
600 return wid 600 return wid
601 601
602 def askConfirmationHandler(self, confirmation_id, confirmation_type, data):
603 answer_data = {}
604
605 def confirm_cb(result):
606 self.bridge.call('confirmationAnswer', None, confirmation_id, result, answer_data)
607
608 if confirmation_type == "YES/NO":
609 dialog.ConfirmDialog(confirm_cb, text=data["message"], title=data["title"]).show()
610
611 def _newAlert(self, message, title, alert_type):
612 dialog.InfoDialog(title, message).show()
613
614 def isHidden(self): 602 def isHidden(self):
615 """Tells if the frontend window is hidden. 603 """Tells if the frontend window is hidden.
616 604
617 @return bool 605 @return bool
618 """ 606 """