Пример #1
0
 def __init__(self, parent, sim):
     super(SimPanel, self).__init__(parent)
     self.sim = sim
     box = QtGui.QHBoxLayout()
     self.solution = GLPatchWidget(self, self.sim.grid, vmin=0., vmax=0.8)
     self.bar = ColorBarWidget(self, vmin=0., vmax=0.8)
     box.addWidget(self.solution, 2)
     box.addWidget(self.bar, 2)
     self.param_panel = ParamRuler(self, sim)
     box.addWidget(self.param_panel)
     self.setLayout(box)
Пример #2
0
 def __init__(self, parent, sim):
     super().__init__(parent)
     self.sim = sim
     box = QtWidgets.QHBoxLayout()
     if is_windows_platform():
         self.solution = MatplotlibPatchWidget(self, self.sim.grid, vmin=0., vmax=0.8)
         box.addWidget(self.solution, 2)
     else:
         self.solution = GLPatchWidget(self, self.sim.grid, vmin=0., vmax=0.8)
         self.bar = ColorBarWidget(self, vmin=0., vmax=0.8)
         box.addWidget(self.solution, 2)
         box.addWidget(self.bar, 2)
     self.param_panel = ParamRuler(self, sim)
     box.addWidget(self.param_panel)
     self.setLayout(box)