Mercurial > libervia-web
comparison browser_side/panels.py @ 191:8213e22c1120
browser side: WebPanel now react on [ENTER] press on URL textBox
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 03 Mar 2013 23:26:09 +0100 |
parents | abebe6d55e0a |
children | cf5c83e7d515 |
comparison
equal
deleted
inserted
replaced
190:abebe6d55e0a | 191:8213e22c1120 |
---|---|
837 @param host: SatWebFrontend instance | 837 @param host: SatWebFrontend instance |
838 """ | 838 """ |
839 LiberviaWidget.__init__(self, host) | 839 LiberviaWidget.__init__(self, host) |
840 self._vpanel = VerticalPanel() | 840 self._vpanel = VerticalPanel() |
841 self._vpanel.setSize('100%', '100%') | 841 self._vpanel.setSize('100%', '100%') |
842 self._url = TextBox() | 842 self._url = dialog.ExtTextBox(enter_cb = self.onUrlClick) |
843 self._url.setText(url or "") | 843 self._url.setText(url or "") |
844 self._url.setWidth('100%') | 844 self._url.setWidth('100%') |
845 hpanel = HorizontalPanel() | 845 hpanel = HorizontalPanel() |
846 hpanel.add(self._url) | 846 hpanel.add(self._url) |
847 btn = Button("Go", self.onUrlClick) | 847 btn = Button("Go", self.onUrlClick) |