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

Class TSPlotFrame

wrappers/Python/CoolProp/GUI/CoolPropGUI.py:31–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31class TSPlotFrame(wx.Frame):
32 def __init__(self, Fluid):
33 wx.Frame.__init__(self, None, title='T-s plot: ' + Fluid)
34
35 sizer = wx.BoxSizer(wx.HORIZONTAL)
36 self.PP = PlotPanel(self, size=(-1, -1))
37
38 sizer.Add(self.PP, 1, wx.EXPAND)
39 self.SetSizer(sizer)
40 Ts(str(Fluid),
41 axis=self.PP.ax,
42 Tmin=CP.CoolProp.Props(str(Fluid), 'Ttriple') + 0.01)
43 sizer.Layout()
44
45 self.add_menu()
46
47 def add_menu(self):
48 # Menu Bar
49 self.MenuBar = wx.MenuBar()
50 self.File = wx.Menu()
51
52 mnuItem = wx.MenuItem(self.File, -1, "Edit...", "", wx.ITEM_NORMAL)
53
54 self.File.AppendItem(mnuItem)
55 self.MenuBar.Append(self.File, "File")
56
57 self.SetMenuBar(self.MenuBar)
58
59
60class PsychOptions(wx.Dialog):

Callers 1

OnTSPlotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected