MCPcopy Create free account
hub / github.com/PlayOnLinux/POL-POM-4 / _createButtons

Method _createButtons

python/install/InstallWindow.py:218–244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 appDescriptionPanel.SetSizer(appDescriptionSizer)
217
218 def _createButtons(self):
219 buttonsPanel = wx.Panel(self.installWindowBodyPanel, -1)
220 buttonsSizer = wx.BoxSizer(wx.HORIZONTAL)
221 buttonsPanel.SetSizer(buttonsSizer)
222
223 self.installWindowBodySizer.AddSpacer(10)
224 self.installWindowBodySizer.Add(buttonsPanel, 0, wx.EXPAND)
225 self.installWindowBodySizer.AddSpacer(10)
226
227 self.cancelButton = wx.Button(buttonsPanel, wx.ID_CLOSE, _("Cancel"))
228 self.installButton = wx.Button(buttonsPanel, wx.ID_APPLY, _("Install"))
229 self.updateButton = wx.Button(buttonsPanel, wx.ID_REFRESH, _("Refresh"))
230 self.manualInstall = wx.lib.agw.hyperlink.HyperLinkCtrl(buttonsPanel, 111, _("Install a non-listed program"))
231 self.manualInstall.SetColours(wx.Colour(0, 0, 0), wx.Colour(0, 0, 0), wx.Colour(0, 0, 0))
232 self.manualInstall.AutoBrowse(False)
233 self.manualInstall.UpdateLink(True)
234
235 buttonsSizer.AddSpacer(10)
236 buttonsSizer.Add(self.manualInstall, 0)
237 buttonsSizer.AddStretchSpacer()
238
239 buttonsSizer.Add(self.updateButton, 0)
240 buttonsSizer.AddSpacer(1)
241 buttonsSizer.Add(self.cancelButton, 0)
242 buttonsSizer.AddSpacer(1)
243 buttonsSizer.Add(self.installButton, 0)
244 buttonsSizer.AddSpacer(10)
245
246 def __init__(self, parent, id, title):
247 PlayOnLinuxWindow.__init__(self, parent, -1, title, size=(850, 550))

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected