MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / __init__

Method __init__

wrappers/Python/CoolProp/GUI/CoolPropGUI.py:268–282  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

266
267class SaturationTable(wx.Frame):
268 def __init__(self, parent):
269 wx.Frame.__init__(self, parent)
270 self.Fluid, self.Tvals = self.OnSelect()
271 if self.Fluid:
272 self.tbl = SimpleGrid(self,
273 ncol=len(self.Tvals)
274 )
275 sizer = wx.BoxSizer(wx.VERTICAL)
276 sizer.Add(self.tbl, 1, wx.EXPAND)
277 self.SetSizer(sizer)
278 sizer.Layout()
279 self.build()
280 self.add_menu()
281 else:
282 self.Destroy()
283
284 def OnSelect(self, event=None):
285 dlg = SaturationTableDialog(None)

Callers

nothing calls this directly

Calls 5

OnSelectMethod · 0.95
buildMethod · 0.95
add_menuMethod · 0.95
SimpleGridClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected