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

Method OnSelect

wrappers/Python/CoolProp/GUI/CoolPropGUI.py:284–295  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

282 self.Destroy()
283
284 def OnSelect(self, event=None):
285 dlg = SaturationTableDialog(None)
286 if dlg.ShowModal() == wx.ID_OK:
287 Fluid, Tvals = dlg.get_values()
288 cancel = False
289 else:
290 cancel = True
291 dlg.Destroy()
292 if not cancel:
293 return Fluid, Tvals
294 else:
295 return None, None
296
297 def build(self):
298 self.SetTitle('Saturation Table: ' + self.Fluid)

Callers 1

__init__Method · 0.95

Calls 2

get_valuesMethod · 0.95

Tested by

no test coverage detected