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

Class PHPlotFrame

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

Source from the content-addressed store, hash-verified

138
139
140class PHPlotFrame(wx.Frame):
141 def __init__(self, Fluid):
142 wx.Frame.__init__(self, None, title='p-h plot: ' + Fluid)
143
144 sizer = wx.BoxSizer(wx.HORIZONTAL)
145 self.PP = PlotPanel(self, size=(-1, -1))
146
147 sizer.Add(self.PP, 1, wx.EXPAND)
148 self.SetSizer(sizer)
149 Ph(str(Fluid),
150 axis=self.PP.ax,
151 Tmin=CP.CoolProp.Props(str(Fluid), 'Ttriple') + 0.01)
152 sizer.Layout()
153
154 self.add_menu()
155
156 def add_menu(self):
157 # Menu Bar
158 self.MenuBar = wx.MenuBar()
159 self.File = wx.Menu()
160
161 mnuItem = wx.MenuItem(self.File, -1, "Edit...", "", wx.ITEM_NORMAL)
162
163 self.File.AppendItem(mnuItem)
164 self.MenuBar.Append(self.File, "File")
165
166 self.SetMenuBar(self.MenuBar)
167
168 def overlay_points(self):
169 pass
170
171 def overlay_cycle(self):
172 pass
173
174
175class SimpleGrid(wx.grid.Grid):

Callers 1

OnPHPlotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected