Exemplo n.º 1
0
 def _create_ui(self, size, detachable, autohide):
     panel = wx.Panel(self)
     panel.SetBackgroundColour(POPUP_BACKGROUND)
     szr = VerticalSizer()
     if detachable:
         szr.add(ButtonWithHandler(panel, 'Detach', width=size[0],
                                   handler=self._detach))
         size = (size[0], size[1]-25)
     self._details = HtmlWindow(self, size=size)
     szr.add_expanding(self._details)
     panel.SetSizer(szr)
     panel.Fit()
     if autohide:
         self._get_autohide_component(panel).Bind(wx.EVT_LEAVE_WINDOW,
                                                  self.hide)