MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

gui/builtinShipBrowser/pfStaticText.py:10–19  ·  view source on GitHub ↗
(self, parent, label=wx.EmptyString)

Source from the content-addressed store, hash-verified

8
9class PFStaticText(wx.Panel):
10 def __init__(self, parent, label=wx.EmptyString):
11 wx.Panel.__init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=parent.GetSize())
12 self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW))
13
14 mainSizer = wx.BoxSizer(wx.VERTICAL)
15 text = wx.StaticText(self, wx.ID_ANY, label, wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE)
16 text.Wrap(-1)
17 mainSizer.Add(text, 1, wx.ALL, 10)
18 self.SetSizer(mainSizer)
19 self.Layout()
20
21 @staticmethod
22 def GetType():

Callers

nothing calls this directly

Calls 2

SetBackgroundColourMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected