(self, parent, id, title)
| 244 | buttonsSizer.AddSpacer(10) |
| 245 | |
| 246 | def __init__(self, parent, id, title): |
| 247 | PlayOnLinuxWindow.__init__(self, parent, -1, title, size=(850, 550)) |
| 248 | self.cats_icons = {} |
| 249 | self.cats_links = {} |
| 250 | |
| 251 | self.descriptionFetcher = DescriptionFetcher() |
| 252 | |
| 253 | ## Window |
| 254 | self.windowSizer = wx.BoxSizer(wx.VERTICAL) |
| 255 | self._createHeader() |
| 256 | self._createBody() |
| 257 | self.SetSizer(self.windowSizer) |
| 258 | |
| 259 | self._createInstallWindowCategoryContentPanel() |
| 260 | self._createWaitPanel() |
| 261 | |
| 262 | # Filter panel |
| 263 | self._createFilterPanel() |
| 264 | |
| 265 | # Apps Navigation |
| 266 | self._createAppNavigation() |
| 267 | self._createAppDescription() |
| 268 | |
| 269 | ## Buttons |
| 270 | self._createButtons() |
| 271 | |
| 272 | self.live = 0 |
| 273 | self.openMin = False |
| 274 | self.images_cat = wx.ImageList(22, 22) |
| 275 | |
| 276 | self.installButton.Enable(False) |
| 277 | |
| 278 | |
| 279 | # wx.EVT_TREE_SEL_CHANGED(self, 105, self.AddApps) |
| 280 | self.Bind(wx.EVT_TREE_SEL_CHANGED, self.AppsDetails, id=106) |
| 281 | self.Bind(wx.EVT_BUTTON, self.closeapp, id=wx.ID_CLOSE) |
| 282 | self.Bind(wx.EVT_BUTTON, self.installapp, id=wx.ID_APPLY) |
| 283 | self.Bind(wx.EVT_BUTTON, self.UpdatePol, id=wx.ID_REFRESH) |
| 284 | self.Bind(wx.EVT_CLOSE, self.closeapp) |
| 285 | self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.installapp, id=106) |
| 286 | self.Bind(wx.EVT_TEXT, self.search, id=110) |
| 287 | self.Bind(wx.lib.agw.hyperlink.EVT_HYPERLINK_LEFT, self.manual, id=111) |
| 288 | |
| 289 | self.Bind(wx.EVT_CHECKBOX, self.CheckBoxReload, id=401) |
| 290 | self.Bind(wx.EVT_CHECKBOX, self.CheckBoxReload, id=402) |
| 291 | self.Bind(wx.EVT_CHECKBOX, self.CheckBoxReload, id=403) |
| 292 | |
| 293 | def TimerAction(self, event): |
| 294 | try: |
nothing calls this directly
no test coverage detected