(self, contentPanel, headerPanel)
| 40 | return "Price" |
| 41 | |
| 42 | def populatePanel(self, contentPanel, headerPanel): |
| 43 | contentSizer = contentPanel.GetSizer() |
| 44 | self.panel = contentPanel |
| 45 | self.headerPanel = headerPanel |
| 46 | |
| 47 | headerContentSizer = wx.BoxSizer(wx.HORIZONTAL) |
| 48 | hsizer = headerPanel.GetSizer() |
| 49 | hsizer.Add(headerContentSizer, 0, 0, 0) |
| 50 | self.labelEMStatus = wx.StaticText(headerPanel, wx.ID_ANY, "") |
| 51 | headerContentSizer.Add(self.labelEMStatus) |
| 52 | headerPanel.GetParent().AddToggleItem(self.labelEMStatus) |
| 53 | |
| 54 | gridPrice = wx.GridSizer(1, 3, 0, 0) |
| 55 | contentSizer.Add(gridPrice, 0, wx.EXPAND | wx.ALL, 0) |
| 56 | for _type, label in ( |
| 57 | ("ship", _t("Ship")), ("fittings", _t("Fittings")), ("total", _t("Total")) |
| 58 | ): |
| 59 | image = "%sPrice_big" % _type if _type != "ship" else "ship_big" |
| 60 | box = wx.BoxSizer(wx.HORIZONTAL) |
| 61 | gridPrice.Add(box, 0, wx.ALIGN_TOP) |
| 62 | |
| 63 | box.Add(BitmapLoader.getStaticBitmap(image, contentPanel, "gui"), 0, wx.ALIGN_CENTER) |
| 64 | |
| 65 | vbox = wx.BoxSizer(wx.VERTICAL) |
| 66 | box.Add(vbox, 1, wx.EXPAND) |
| 67 | |
| 68 | vbox.Add(wx.StaticText(contentPanel, wx.ID_ANY, label), 0, wx.ALIGN_LEFT) |
| 69 | |
| 70 | hbox = wx.BoxSizer(wx.HORIZONTAL) |
| 71 | vbox.Add(hbox) |
| 72 | |
| 73 | lbl = wx.StaticText(contentPanel, wx.ID_ANY, "0.00 ISK") |
| 74 | setattr(self, "labelPrice%s" % _type.capitalize(), lbl) |
| 75 | hbox.Add(lbl, 0, wx.ALIGN_LEFT) |
| 76 | |
| 77 | def refreshPanel(self, fit): |
| 78 | if fit is not None: |
nothing calls this directly
no test coverage detected