Ejemplo n.º 1
0
 def __set_properties(self):
     # begin wxGlade: formAtmosphere.__set_properties
     self.SetTitle("Configure Atmosphere")
     self.SetSize(wx.DLG_UNIT(self, wx.Size(140, 70)))
     self.label_0.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rho'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rho'].SetValidator(numberValidator())
     self.label_1.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['u'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['u'].SetValidator(numberValidator())
     self.label_2.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['p'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['p'].SetValidator(numberValidator())
     self.panel_configure.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.panel_configure.SetScrollRate(10, 10)
     self.accept.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 2
0
 def __set_properties(self):
     # begin wxGlade: formAtmosphere.__set_properties
     self.SetTitle("Configure Atmosphere")
     self.SetSize(wx.DLG_SZE(self, (140, 70)))
     self.label_0.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rho'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rho'].SetValidator(numberValidator())
     self.label_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['u'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['u'].SetValidator(numberValidator())
     self.label_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['p'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['p'].SetValidator(numberValidator())
     self.panel_configure.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.panel_configure.SetScrollRate(10, 10)
     self.accept.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 3
0
 def __set_properties(self):
     # begin wxGlade: formJunction.__set_properties
     self.SetTitle("Configure Junction")
     self.SetSize((450, 250))
     self.data['ndof'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetValidator(numberValidator())
     self.label_1.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['modelo_junc'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['modelo_junc'].SetSelection(0)
     #self.label_3.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.button_5.SetMinSize(wx.DLG_SZE(self.button_5, (16, 12)))
     #self.data['histo'].CreateGrid(1, 3)
     #self.data['histo'].SetRowLabelSize(18)
     #self.data['histo'].SetColLabelSize(18)
     #self.data['histo'].EnableDragColSize(0)
     #self.data['histo'].EnableDragRowSize(0)
     #self.data['histo'].EnableDragGridSize(0)
     #self.data['histo'].SetColLabelValue(0, "ndof 1")
     #self.data['histo'].SetColLabelValue(1, "ndof 2")
     #self.data['histo'].SetColLabelValue(2, "ndof 3")
     #self.data['histo'].SetMinSize(wx.DLG_SZE(self.data['histo'], (147, 100)))
     #self.data['histo'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['histo'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['histo'].SetDefaultRowSize(18)
     #self.data['histo'].hide()
     #self.label_3.hide()
     #self.data['histo'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['histo'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['extras'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['label'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.panel_configure.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.panel_configure.SetScrollRate(10, 10)
     self.configure_notebook.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.accept.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 4
0
 def __set_properties(self):
     # begin wxGlade: formJunction.__set_properties
     self.SetTitle("Configure Junction")
     self.SetSize((450, 250))
     self.data['ndof'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetValidator(numberValidator())
     self.label_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['modelo_junc'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['modelo_junc'].SetSelection(0)
     #self.label_3.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.button_5.SetMinSize(wx.DLG_SZE(self.button_5, (16, 12)))
     #self.data['histo'].CreateGrid(1, 3)
     #self.data['histo'].SetRowLabelSize(18)
     #self.data['histo'].SetColLabelSize(18)
     #self.data['histo'].EnableDragColSize(0)
     #self.data['histo'].EnableDragRowSize(0)
     #self.data['histo'].EnableDragGridSize(0)
     #self.data['histo'].SetColLabelValue(0, "ndof 1")
     #self.data['histo'].SetColLabelValue(1, "ndof 2")
     #self.data['histo'].SetColLabelValue(2, "ndof 3")
     #self.data['histo'].SetMinSize(wx.DLG_SZE(self.data['histo'], (147, 100)))
     #self.data['histo'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['histo'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['histo'].SetDefaultRowSize(18)
     #self.data['histo'].hide()
     #self.label_3.hide()
     #self.data['histo'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['histo'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['extras'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['label'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.panel_configure.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.panel_configure.SetScrollRate(10, 10)
     self.configure_notebook.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.accept.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 5
0
 def __set_properties(self):
     # begin wxGlade: formValve.__set_properties
     self.SetTitle("Configure Valve")
     self.SetSize(wx.DLG_SZE(self, (300, 280)))
     self.label_0.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Nval'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type_dat'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type_dat'].SetSelection(0)
     self.label_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['angle_V0'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['angle_V0'].SetValidator(numberValidator())
     self.label_3.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['angle_VC'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['angle_VC'].SetValidator(numberValidator())
     self.label_4.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Dv'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Dv'].SetValidator(numberValidator())
     self.label_5.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['valve_model'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['valve_model'].SetSelection(0)
     self.label_6.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type'].SetSelection(0)
     self.label_7.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Lvmax'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Lvmax'].SetValidator(numberValidator())
     self.label_8.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_1.SetMinSize(wx.DLG_SZE(self.button_1, (20, 13)))
     self.button_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_1b.SetMinSize(wx.DLG_SZE(self.button_1b, (20, 13)))
     self.button_1b.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Lv'].CreateGrid(5, 2)
     self.data['Lv'].SetRowLabelSize(20)
     self.data['Lv'].SetColLabelSize(20)
     self.data['Lv'].EnableDragColSize(0)
     self.data['Lv'].EnableDragRowSize(0)
     self.data['Lv'].EnableDragGridSize(0)
     self.data['Lv'].SetColLabelValue(0, "Angle [deg]")
     self.data['Lv'].SetColLabelValue(1, "Lift [mm]")
     self.data['Lv'].SetMinSize(wx.DLG_SZE(self.data['Lv'], (120, 100)))
     self.data['Lv'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Lv'].SetDefaultRowSize(18)
     self.data['Lv'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_9_copy.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2.SetMinSize(wx.DLG_SZE(self.button_2, (20, 13)))
     self.button_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2b.SetMinSize(wx.DLG_SZE(self.button_2b, (20, 13)))
     self.button_2b.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Cd'].CreateGrid(10, 2)
     self.data['Cd'].SetRowLabelSize(20)
     self.data['Cd'].SetColLabelSize(20)
     self.data['Cd'].EnableDragColSize(0)
     self.data['Cd'].EnableDragRowSize(0)
     self.data['Cd'].EnableDragGridSize(0)
     self.data['Cd'].SetColLabelValue(0, "Lift [mm]")
     self.data['Cd'].SetColLabelValue(1, "Cd")
     self.data['Cd'].SetMinSize(wx.DLG_SZE(self.data['Cd'], (120, 99)))
     self.data['Cd'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Cd'].SetDefaultRowSize(18)
     self.data['Cd'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetScrollRate(10, 10)
     #self.data['histo'].CreateGrid(1, 3)
     #self.data['histo'].SetRowLabelSize(25)
     #self.data['histo'].SetColLabelSize(15)
     #self.data['histo'].EnableDragColSize(0)
     #self.data['histo'].EnableDragRowSize(0)
     #self.data['histo'].EnableDragGridSize(0)
     #self.data['histo'].SetColLabelValue(0, "Density")
     #self.data['histo'].SetColLabelValue(1, "Velocity")
     #self.data['histo'].SetColLabelValue(2, "Pressure")
     #self.data['histo'].SetMinSize(wx.DLG_SZE(self.data['histo'], (161, 100)))
     #self.data['histo'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['histo'].SetDefaultRowSize(18)
     #self.data['histo'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['histo'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['label'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_12.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.button_3.SetMinSize(wx.DLG_SZE(self.button_3, (16, 11)))
     #self.notebook_state.SetScrollRate(10, 10)
     self.configure_notebook.SetMinSize(wx.DLG_SZE(self.configure_notebook, (310, 94)))
     self.configure_notebook.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.panel_configure.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.accept.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 6
0
 def __set_properties(self):
     # begin wxGlade: formValve.__set_properties
     self.SetTitle("Configure Valve")
     self.SetSize(wx.DLG_SZE(self, (300, 280)))
     self.label_0.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Nval'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_1.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type_dat'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type_dat'].SetSelection(0)
     self.label_2.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['angle_V0'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['angle_V0'].SetValidator(numberValidator())
     self.label_3.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['angle_VC'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['angle_VC'].SetValidator(numberValidator())
     self.label_4.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Dv'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Dv'].SetValidator(numberValidator())
     self.label_5.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['valve_model'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['valve_model'].SetSelection(0)
     self.label_6.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type'].SetSelection(0)
     self.label_7.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Lvmax'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Lvmax'].SetValidator(numberValidator())
     self.label_8.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_1.SetMinSize(wx.DLG_SZE(self.button_1, (20, 13)))
     self.button_1.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_1b.SetMinSize(wx.DLG_SZE(self.button_1b, (20, 13)))
     self.button_1b.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Lv'].CreateGrid(5, 2)
     self.data['Lv'].SetRowLabelSize(20)
     self.data['Lv'].SetColLabelSize(20)
     self.data['Lv'].EnableDragColSize(0)
     self.data['Lv'].EnableDragRowSize(0)
     self.data['Lv'].EnableDragGridSize(0)
     self.data['Lv'].SetColLabelValue(0, "Angle [deg]")
     self.data['Lv'].SetColLabelValue(1, "Lift [mm]")
     self.data['Lv'].SetMinSize(wx.DLG_SZE(self.data['Lv'], (120, 100)))
     self.data['Lv'].SetDefaultCellFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Lv'].SetDefaultRowSize(18)
     self.data['Lv'].SetLabelFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_9_copy.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2.SetMinSize(wx.DLG_SZE(self.button_2, (20, 13)))
     self.button_2.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2b.SetMinSize(wx.DLG_SZE(self.button_2b, (20, 13)))
     self.button_2b.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Cd'].CreateGrid(10, 2)
     self.data['Cd'].SetRowLabelSize(20)
     self.data['Cd'].SetColLabelSize(20)
     self.data['Cd'].EnableDragColSize(0)
     self.data['Cd'].EnableDragRowSize(0)
     self.data['Cd'].EnableDragGridSize(0)
     self.data['Cd'].SetColLabelValue(0, "Lift [mm]")
     self.data['Cd'].SetColLabelValue(1, "Cd")
     self.data['Cd'].SetMinSize(wx.DLG_SZE(self.data['Cd'], (120, 99)))
     self.data['Cd'].SetDefaultCellFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Cd'].SetDefaultRowSize(18)
     self.data['Cd'].SetLabelFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetScrollRate(10, 10)
     #self.data['histo'].CreateGrid(1, 3)
     #self.data['histo'].SetRowLabelSize(25)
     #self.data['histo'].SetColLabelSize(15)
     #self.data['histo'].EnableDragColSize(0)
     #self.data['histo'].EnableDragRowSize(0)
     #self.data['histo'].EnableDragGridSize(0)
     #self.data['histo'].SetColLabelValue(0, "Density")
     #self.data['histo'].SetColLabelValue(1, "Velocity")
     #self.data['histo'].SetColLabelValue(2, "Pressure")
     #self.data['histo'].SetMinSize(wx.DLG_SZE(self.data['histo'], (161, 100)))
     #self.data['histo'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['histo'].SetDefaultRowSize(18)
     #self.data['histo'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['histo'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['label'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_12.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.button_3.SetMinSize(wx.DLG_SZE(self.button_3, (16, 11)))
     #self.notebook_state.SetScrollRate(10, 10)
     self.configure_notebook.SetMinSize(
         wx.DLG_SZE(self.configure_notebook, (310, 94)))
     self.configure_notebook.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.panel_configure.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.accept.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 7
0
    def __set_properties(self):
        # begin wxGlade: formTube.__set_properties
        self.SetTitle("Configure Tube")
        self.SetSize(wx.DLG_SZE(self, (320, 280)))
        self.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.label_0.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['nnod'].SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['nnod'].SetValidator(numberValidator())
        self.label_1.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['ndof'].SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['ndof'].SetValidator(numberValidator())
        self.label_2.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['longitud'].SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['longitud'].SetValidator(numberValidator())
        self.checkbox_1.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.checkbox_2.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['curvature'].Enable(0)
        # self.checkbox_2.SetValue(1)
        self.label_4.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_1.SetMinSize(wx.DLG_SZE(self.button_1, (16, 12)))
        self.data['xnod'].CreateGrid(1, 1)
        self.data['xnod'].SetRowLabelSize(25)
        self.data['xnod'].SetColLabelSize(15)
        self.data['xnod'].EnableDragColSize(0)
        self.data['xnod'].EnableDragRowSize(0)
        self.data['xnod'].EnableDragGridSize(0)
        self.data['xnod'].SetColLabelValue(0, "Position")
        self.data['xnod'].SetMinSize(wx.DLG_SZE(self.data['xnod'], (62, 100)))
        self.data['xnod'].SetDefaultCellFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['xnod'].SetDefaultRowSize(18)
        self.data['xnod'].SetLabelFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.label_5.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_2.SetMinSize(wx.DLG_SZE(self.button_2, (16, 12)))
        self.data['diameter'].CreateGrid(1, 1)
        self.data['diameter'].SetRowLabelSize(25)
        self.data['diameter'].SetColLabelSize(18)
        self.data['diameter'].EnableDragColSize(0)
        self.data['diameter'].EnableDragRowSize(0)
        self.data['diameter'].EnableDragGridSize(0)
        self.data['diameter'].SetColLabelValue(0, "Diameter")
        self.data['diameter'].SetMinSize(
            wx.DLG_SZE(self.data['diameter'], (60, 100)))
        self.data['diameter'].SetDefaultCellFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['diameter'].SetDefaultRowSize(18)
        self.data['diameter'].SetLabelFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.label_6.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_3.SetMinSize(wx.DLG_SZE(self.button_3, (16, 12)))
        self.data['twall'].CreateGrid(1, 1)
        self.data['twall'].SetRowLabelSize(25)
        self.data['twall'].SetColLabelSize(18)
        self.data['twall'].EnableDragColSize(0)
        self.data['twall'].EnableDragRowSize(0)
        self.data['twall'].EnableDragGridSize(0)
        self.data['twall'].SetColLabelValue(0, "Temperature")
        self.data['twall'].SetMinSize(wx.DLG_SZE(self.data['twall'],
                                                 (60, 100)))
        self.data['twall'].SetDefaultCellFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['twall'].SetDefaultRowSize(18)
        self.data['twall'].SetLabelFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.label_7.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.label_9.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_4.SetMinSize(wx.DLG_SZE(self.button_4, (16, 12)))
        self.data['curvature'].CreateGrid(1, 1)
        self.data['curvature'].SetRowLabelSize(25)
        self.data['curvature'].SetColLabelSize(18)
        self.data['curvature'].EnableDragColSize(0)
        self.data['curvature'].EnableDragRowSize(0)
        self.data['curvature'].EnableDragGridSize(0)
        self.data['curvature'].SetColLabelValue(0, "Curvature")
        self.data['curvature'].SetMinSize(
            wx.DLG_SZE(self.data['curvature'], (60, 100)))
        self.data['curvature'].SetDefaultCellFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['curvature'].SetDefaultRowSize(18)
        self.data['curvature'].SetLabelFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.notebook_general.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.notebook_general.SetScrollRate(10, 10)
        self.data['state_ini'].CreateGrid(1, 3)
        self.data['state_ini'].SetRowLabelSize(25)
        self.data['state_ini'].SetColLabelSize(15)
        self.data['state_ini'].EnableDragColSize(0)
        self.data['state_ini'].EnableDragRowSize(0)
        self.data['state_ini'].EnableDragGridSize(0)
        self.data['state_ini'].SetColLabelValue(0, "Density")
        self.data['state_ini'].SetColLabelValue(1, "Velocity")
        self.data['state_ini'].SetColLabelValue(2, "Pressure")
        self.data['state_ini'].SetMinSize(
            wx.DLG_SZE(self.data['state_ini'], (161, 100)))
        self.data['state_ini'].SetDefaultCellFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['state_ini'].SetDefaultRowSize(18)
        self.data['state_ini'].SetLabelFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))

        self.data['typeSave'].SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['numNorm'].SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['histo'].SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['numNorm'].Enable(False)
        self.data['posNorm'].Enable(False)
        self.data['histo'].Enable(False)
        self.notebook_post.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.notebook_post.SetScrollRate(10, 10)
        self.data['posNorm'].CreateGrid(3, 1)
        self.data['posNorm'].SetRowLabelSize(25)
        self.data['posNorm'].SetColLabelSize(20)
        self.data['posNorm'].EnableDragColSize(0)
        self.data['posNorm'].EnableDragRowSize(0)
        self.data['posNorm'].EnableDragGridSize(0)
        self.data['posNorm'].SetColLabelValue(0, "X/L [0,1]:")
        self.data['posNorm'].SetMinSize(
            wx.DLG_SZE(self.data['state_ini'], (58, 53)))
        self.data['posNorm'].SetDefaultCellFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['posNorm'].SetDefaultRowSize(18)
        self.data['posNorm'].SetLabelFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.data['label'].SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.label_12.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_constDiam.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_constDiam.SetMinSize(wx.DLG_SZE(self.button_2, (25, 12)))
        self.button_constTemp.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_constTemp.SetMinSize(wx.DLG_SZE(self.button_2, (25, 12)))
        self.button_linearDiam.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_linearDiam.SetMinSize(wx.DLG_SZE(self.button_2, (25, 12)))
        self.button_linearTemp.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_linearTemp.SetMinSize(wx.DLG_SZE(self.button_2, (25, 12)))
        self.button_6.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.button_6.SetMinSize(wx.DLG_SZE(self.button_2, (40, 12)))
        self.button_5.SetMinSize(wx.DLG_SZE(self.button_5, (16, 12)))
        self.notebook_state.SetScrollRate(10, 10)
        self.configure_notebook.SetMinSize(
            wx.DLG_SZE(self.configure_notebook, (270, 362)))
        self.configure_notebook.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
        self.panel_configure.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.accept.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
        self.cancel.SetFont(
            wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 8
0
 def __set_properties(self):
     # begin wxGlade: formSimulation.__set_properties
     self.SetTitle("Configure Simulation")
     self.SetSize(wx.DLG_SZE(self, (300, 230)))
     self.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.label_0.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rpms'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['rpms'].SetValidator(numberValidator())
     self.label_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ncycles'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ncycles'].SetValidator(numberValidator())
     self.label_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nsave'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nsave'].SetValidator(numberValidator())
     self.label_3.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['dtheta_rpm'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['dtheta_rpm'].SetValidator(numberValidator())
     self.label_4.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Courant'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Courant'].SetValidator(numberValidator())
     self.label_5.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ga'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ga'].SetValidator(numberValidator())
     self.label_6.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['viscous_flow'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['viscous_flow'].SetValidator(numberValidator())
     self.label_7.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['heat_flow'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['heat_flow'].SetValidator(numberValidator())
     self.label_8.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['R_gas'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['R_gas'].SetValidator(numberValidator())
     self.label_9.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nstroke'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nstroke'].SetSelection(1)
     self.label_10.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['engine_type'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['engine_type'].SetSelection(0)
     self.label_11.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ig_order'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['ig_order'].SetValidator(numberValidator())
     self.notebook_general.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetScrollRate(10, 10)
     self.label_12.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['filesave_state'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_13.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['filesave_spd'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_14.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['get_state'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['get_state'].SetSelection(0)
     self.label_15.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_1.SetMinSize(wx.DLG_SZE(self.button_1, (44, 10)))
     self.button_1.Enable(False)
     self.button_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.filename.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, ""))
     self.data['filein_state'].Hide()
     self.data['calc_engine_data'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nappend'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['folder_name'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_17.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_18.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_saves.SetScrollRate(10, 10)
     self.configure_notebook.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.panel_configure.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.accept.SetMinSize(wx.DLG_SZE(self.accept, (52, 16)))
     self.cancel.SetMinSize(wx.DLG_SZE(self.cancel, (52, 16)))
Ejemplo n.º 9
0
 def __set_properties(self):
     # begin wxGlade: formSimulation.__set_properties
     self.SetTitle("Configure Simulation")
     self.SetSize(wx.DLG_SZE(self, (300, 230)))
     self.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.label_0.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rpms'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['rpms'].SetValidator(numberValidator())
     self.label_1.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ncycles'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ncycles'].SetValidator(numberValidator())
     self.label_2.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nsave'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nsave'].SetValidator(numberValidator())
     self.label_3.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['dtheta_rpm'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['dtheta_rpm'].SetValidator(numberValidator())
     self.label_4.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Courant'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Courant'].SetValidator(numberValidator())
     self.label_5.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ga'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ga'].SetValidator(numberValidator())
     self.label_6.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['viscous_flow'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['viscous_flow'].SetValidator(numberValidator())
     self.label_7.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['heat_flow'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['heat_flow'].SetValidator(numberValidator())
     self.label_8.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['R_gas'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['R_gas'].SetValidator(numberValidator())
     self.label_9.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nstroke'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nstroke'].SetSelection(1)
     self.label_10.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['engine_type'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['engine_type'].SetSelection(0)
     self.label_11.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ig_order'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     #self.data['ig_order'].SetValidator(numberValidator())
     self.notebook_general.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetScrollRate(10, 10)
     self.label_12.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['filesave_state'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_13.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['filesave_spd'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_14.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['get_state'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['get_state'].SetSelection(0)
     self.label_15.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_1.SetMinSize(wx.DLG_SZE(self.button_1, (44, 10)))
     self.button_1.Enable(False)
     self.button_1.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.filename.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0,
                                   ""))
     self.data['filein_state'].Hide()
     self.data['calc_engine_data'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nappend'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['folder_name'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_17.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_18.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_saves.SetScrollRate(10, 10)
     self.configure_notebook.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.panel_configure.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.accept.SetMinSize(wx.DLG_SZE(self.accept, (52, 16)))
     self.cancel.SetMinSize(wx.DLG_SZE(self.cancel, (52, 16)))
Ejemplo n.º 10
0
 def __set_properties(self):
     # begin wxGlade: formTank.__set_properties
     self.SetTitle("Configure Tank")
     self.SetSize(wx.DLG_UNIT(self, wx.Size(212, 168)))
     self.label_0.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetValidator(numberValidator())
     self.label_1.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetValidator(numberValidator())
     self.label_2.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Volume'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Volume'].SetValidator(numberValidator())
     self.label_3.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['mass'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['mass'].SetValidator(numberValidator())
     self.label_4.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['h_film'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['h_film'].SetValidator(numberValidator())
     self.label_5.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Area_wall'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Area_wall'].SetValidator(numberValidator())
     self.label_6.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['T_wall'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['T_wall'].SetValidator(numberValidator())
     self.label_7.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_5_copy.SetMinSize(
         wx.DLG_UNIT(self.button_5_copy, wx.Size(16, 12)))
     self.data['Cd_ports'].CreateGrid(0, 1)
     self.data['Cd_ports'].SetRowLabelSize(25)
     self.data['Cd_ports'].SetColLabelSize(15)
     self.data['Cd_ports'].EnableDragColSize(0)
     self.data['Cd_ports'].EnableDragRowSize(0)
     self.data['Cd_ports'].EnableDragGridSize(0)
     self.data['Cd_ports'].SetColLabelValue(0, "value")
     self.data['Cd_ports'].SetMinSize(
         wx.DLG_UNIT(self.data['Cd_ports'], wx.Size(70, 100)))
     self.data['Cd_ports'].SetDefaultCellFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Cd_ports'].SetDefaultRowSize(18)
     self.data['Cd_ports'].SetLabelFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetMinSize(
         wx.DLG_UNIT(self.notebook_general, wx.Size(258, 1344)))
     self.notebook_general.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetScrollRate(10, 10)
     self.data['state_ini'].CreateGrid(1, 3)
     self.data['state_ini'].SetRowLabelSize(25)
     self.data['state_ini'].SetColLabelSize(15)
     self.data['state_ini'].EnableDragColSize(0)
     self.data['state_ini'].EnableDragRowSize(0)
     self.data['state_ini'].EnableDragGridSize(0)
     self.data['state_ini'].SetColLabelValue(0, "Density")
     self.data['state_ini'].SetColLabelValue(1, "Pressure")
     self.data['state_ini'].SetColLabelValue(2, "Temperature")
     self.data['state_ini'].SetMinSize(
         wx.DLG_UNIT(self.data['state_ini'], wx.Size(160, 128)))
     self.data['state_ini'].SetDefaultCellFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['state_ini'].SetDefaultRowSize(18)
     self.data['state_ini'].SetLabelFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['histo'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['extras'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['label'].SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_11.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2.SetMinSize(wx.DLG_UNIT(self.button_2, wx.Size(16, 12)))
     self.notebook_state.SetScrollRate(10, 10)
     self.configure_notebook.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.panel_configure.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.accept.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 11
0
 def __set_properties(self):
     # begin wxGlade: formCylinder.__set_properties
     self.SetTitle("Form Cylinder")
     self.SetSize(wx.DLG_SZE(self, (476, 692)))
     self.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_0.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetValidator(numberValidator())
     self.label_3.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetValidator(numberValidator())
     self.label_4.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Bore'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Bore'].SetValidator(numberValidator())
     self.label_5.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['crank_radius'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['crank_radius'].SetValidator(numberValidator())
     self.label_6.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Vol_clearance'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Vol_clearance'].SetValidator(numberValidator())
     self.label_7.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['head_chamber_area'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['head_chamber_area'].SetValidator(numberValidator())
     self.label_8.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['piston_area'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['piston_area'].SetValidator(numberValidator())
     self.label_9.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['delta_ca'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['delta_ca'].SetValidator(numberValidator())
     self.label_21.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rod_length'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rod_length'].SetValidator(numberValidator())
     self.label_11.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['twall'].CreateGrid(1, 1)
     self.data['twall'].SetRowLabelSize(55)
     self.data['twall'].SetColLabelSize(18)
     self.data['twall'].EnableDragColSize(0)
     self.data['twall'].EnableDragRowSize(0)
     self.data['twall'].EnableDragGridSize(0)
     self.data['twall'].SetColLabelValue(0, "ºK")
     self.data['twall'].SetRowLabelValue(0, "Wall: ")
     self.data['twall'].SetMinSize(wx.DLG_SZE(self.data['U_crevice'], (75, 50)))
     self.data['twall'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['twall'].SetDefaultRowSize(18)
     self.data['twall'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_12.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['model_ht'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['model_ht'].SetSelection(0)
     self.label_13.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['factor_ht'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['factor_ht'].SetValidator(numberValidator())
     self.label_18.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['mass_C'].CreateGrid(6, 1)
     self.data['mass_C'].SetRowLabelSize(25)
     self.data['mass_C'].SetColLabelSize(18)
     self.data['mass_C'].EnableDragColSize(0)
     self.data['mass_C'].EnableDragRowSize(0)
     self.data['mass_C'].EnableDragGridSize(0)
     self.data['mass_C'].SetColLabelValue(0, "Data")
     self.data['mass_C'].SetMinSize(wx.DLG_SZE(self.data['mass_C'], (80, 60)))
     self.data['mass_C'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['mass_C'].SetDefaultRowSize(18)
     self.data['mass_C'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_10.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type_ig'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type_ig'].SetSelection(0)
     self.data['nve'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nve'].Hide()
     self.data['nve'].SetValidator(numberValidator())
     self.data['nvi'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nvi'].Hide()
     self.data['nvi'].SetValidator(numberValidator())
     self.data['scavenge'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_15.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['scavenge_type'].Enable(False)
     self.data['scavenge_type'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['scavenge_type'].SetSelection(0)
     self.label_16.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['SRv'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['SRv'].SetValidator(numberValidator())
     self.data['full_implicit'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['full_implicit'].SetValue(1)
     self.label_19.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['data_crevice'].CreateGrid(2, 1)
     self.data['data_crevice'].SetRowLabelSize(25)
     self.data['data_crevice'].SetColLabelSize(18)
     self.data['data_crevice'].EnableDragColSize(0)
     self.data['data_crevice'].EnableDragRowSize(0)
     self.data['data_crevice'].EnableDragGridSize(0)
     self.data['data_crevice'].SetColLabelValue(0, "Value")
     self.data['data_crevice'].SetMinSize(wx.DLG_SZE(self.data['data_crevice'], (75, 50)))
     self.data['data_crevice'].Enable(False)
     self.data['data_crevice'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['data_crevice'].SetDefaultRowSize(18)
     self.data['data_crevice'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_20.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['U_crevice'].CreateGrid(2, 1)
     self.data['U_crevice'].SetRowLabelSize(25)
     self.data['U_crevice'].SetColLabelSize(18)
     self.data['U_crevice'].EnableDragColSize(0)
     self.data['U_crevice'].EnableDragRowSize(0)
     self.data['U_crevice'].EnableDragGridSize(0)
     self.data['U_crevice'].SetColLabelValue(0, "Data")
     self.data['U_crevice'].SetMinSize(wx.DLG_SZE(self.data['U_crevice'], (75, 50)))
     self.data['U_crevice'].Enable(False)
     self.data['U_crevice'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['U_crevice'].SetDefaultRowSize(18)
     self.data['U_crevice'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_28b.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['type_temperature'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetScrollRate(10, 10)
     self.label_22.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.fuel['Q_fuel'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.fuel['Q_fuel'].SetValidator(numberValidator())
     self.label_23.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.fuel['y'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.fuel['y'].SetValidator(numberValidator())
     self.label_24.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.fuel['hvap_fuel'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.fuel['hvap_fuel'].SetValidator(numberValidator())
     self.notebook_fuel.SetScrollRate(10, 10)
     self.label_25.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['pulse'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['pulse'].SetSelection(1)
     self.label_26.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['m_inj'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['m_inj'].SetValidator(numberValidator())
     self.label_27.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['dtheta_inj'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['dtheta_inj'].SetValidator(numberValidator())
     self.label_28.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['T_fuel'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['T_fuel'].SetValidator(numberValidator())
     self.label_29.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['theta_inj_ini'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['theta_inj_ini'].SetValidator(numberValidator())
     self.label_30.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['theta_id'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['theta_id'].SetValidator(numberValidator())
     self.label_31.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['ignition_delay_model'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['ignition_delay_model'].SetSelection(1)
     self.label_33.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_3.SetMinSize(wx.DLG_SZE(self.button_3, (20, 13)))
     self.button_3.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_3b.SetMinSize(wx.DLG_SZE(self.button_3b, (20, 13)))
     self.button_3b.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['mfdot_array'].CreateGrid(30, 2)
     self.injection['mfdot_array'].SetRowLabelSize(25)
     self.injection['mfdot_array'].SetColLabelSize(18)
     self.injection['mfdot_array'].EnableDragColSize(0)
     self.injection['mfdot_array'].EnableDragRowSize(0)
     self.injection['mfdot_array'].EnableDragGridSize(0)
     self.injection['mfdot_array'].SetColLabelValue(0, "open")
     self.injection['mfdot_array'].SetColLabelValue(1, "Value")
     self.injection['mfdot_array'].SetMinSize(wx.DLG_SZE(self.injection['mfdot_array'], (120, 200)))
     self.injection['mfdot_array'].Enable(False)
     self.injection['theta_id'].Enable(False)
     self.injection['mfdot_array'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.injection['mfdot_array'].SetDefaultRowSize(18)
     self.injection['mfdot_array'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_injection.SetScrollRate(10, 10)
     self.label_34.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['theta_ig_0'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['theta_ig_0'].SetValidator(numberValidator())
     self.label_35.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['dtheta_comb'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['dtheta_comb'].SetValidator(numberValidator())
     self.label_36.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['phi'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['phi'].SetValidator(numberValidator())
     self.label_38.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['a_wiebe'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['a_wiebe'].SetValidator(numberValidator())
     self.label_39.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['m_wiebe'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['m_wiebe'].SetValidator(numberValidator())
     self.label_40.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['combustion_model'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['combustion_model'].SetSelection(1)
     self.label_41.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2.SetMinSize(wx.DLG_SZE(self.button_2, (20, 13)))
     self.button_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2b.SetMinSize(wx.DLG_SZE(self.button_2b, (20, 13)))
     self.button_2b.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['xbdot_array'].CreateGrid(30, 2)
     self.combustion['xbdot_array'].SetRowLabelSize(25)
     self.combustion['xbdot_array'].SetColLabelSize(25)
     self.combustion['xbdot_array'].EnableDragColSize(0)
     self.combustion['xbdot_array'].EnableDragRowSize(0)
     self.combustion['xbdot_array'].EnableDragGridSize(0)
     self.combustion['xbdot_array'].SetColLabelValue(0, "open")
     self.combustion['xbdot_array'].SetColLabelValue(1, "Value")
     self.combustion['xbdot_array'].SetMinSize(wx.DLG_SZE(self.combustion['xbdot_array'], (120, 200)))
     self.combustion['xbdot_array'].Enable(False)
     self.combustion['xbdot_array'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.combustion['xbdot_array'].SetDefaultRowSize(18)
     self.combustion['xbdot_array'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_combustion.SetScrollRate(10, 10)
     self.data['state_ini'].CreateGrid(1, 3)
     self.data['state_ini'].SetRowLabelSize(25)
     self.data['state_ini'].SetColLabelSize(15)
     self.data['state_ini'].EnableDragColSize(0)
     self.data['state_ini'].EnableDragRowSize(0)
     self.data['state_ini'].EnableDragGridSize(0)
     self.data['state_ini'].SetColLabelValue(0, "Density")
     self.data['state_ini'].SetColLabelValue(1, "Pressure")
     self.data['state_ini'].SetColLabelValue(2, "Temperature")
     self.data['state_ini'].SetMinSize(wx.DLG_SZE(self.data['state_ini'], (160, 80)))
     self.data['state_ini'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['state_ini'].SetDefaultRowSize(18)
     self.data['state_ini'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ownState'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['extras'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['label'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['histo'].Hide()
     self.label_27b.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['species_model'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_4.SetMinSize(wx.DLG_SZE(self.button_4, (16, 11)))
     self.notebook_state.SetScrollRate(10, 10)
     self.configure_notebook.SetMinSize(wx.DLG_SZE(self.configure_notebook, (354, 300)))
     self.configure_notebook.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.panel_configure.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.accept.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 12
0
 def __set_properties(self):
     # begin wxGlade: formTank.__set_properties
     self.SetTitle("Configure Tank")
     self.SetSize(wx.DLG_SZE(self, (212, 168)))
     self.label_0.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetValidator(numberValidator())
     self.label_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetValidator(numberValidator())
     self.label_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Volume'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Volume'].SetValidator(numberValidator())
     self.label_3.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['mass'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['mass'].SetValidator(numberValidator())
     self.label_4.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['h_film'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['h_film'].SetValidator(numberValidator())
     self.label_5.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Area_wall'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Area_wall'].SetValidator(numberValidator())
     self.label_6.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['T_wall'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['T_wall'].SetValidator(numberValidator())
     self.label_7.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_5_copy.SetMinSize(wx.DLG_SZE(self.button_5_copy, (16, 12)))
     self.data['Cd_ports'].CreateGrid(0,1)
     self.data['Cd_ports'].SetRowLabelSize(25)
     self.data['Cd_ports'].SetColLabelSize(15)
     self.data['Cd_ports'].EnableDragColSize(0)
     self.data['Cd_ports'].EnableDragRowSize(0)
     self.data['Cd_ports'].EnableDragGridSize(0)
     self.data['Cd_ports'].SetColLabelValue(0, "value")
     self.data['Cd_ports'].SetMinSize(wx.DLG_SZE(self.data['Cd_ports'], (70,100)))
     self.data['Cd_ports'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['Cd_ports'].SetDefaultRowSize(18)
     self.data['Cd_ports'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetMinSize(wx.DLG_SZE(self.notebook_general, (258, 1344)))
     self.notebook_general.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetScrollRate(10, 10)
     self.data['state_ini'].CreateGrid(1, 3)
     self.data['state_ini'].SetRowLabelSize(25)
     self.data['state_ini'].SetColLabelSize(15)
     self.data['state_ini'].EnableDragColSize(0)
     self.data['state_ini'].EnableDragRowSize(0)
     self.data['state_ini'].EnableDragGridSize(0)
     self.data['state_ini'].SetColLabelValue(0, "Density")
     self.data['state_ini'].SetColLabelValue(1, "Pressure")
     self.data['state_ini'].SetColLabelValue(2, "Temperature")
     self.data['state_ini'].SetMinSize(wx.DLG_SZE(self.data['state_ini'], (160, 128)))
     self.data['state_ini'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['state_ini'].SetDefaultRowSize(18)
     self.data['state_ini'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['histo'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['extras'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['label'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_11.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2.SetMinSize(wx.DLG_SZE(self.button_2, (16, 12)))
     self.notebook_state.SetScrollRate(10, 10)
     self.configure_notebook.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.panel_configure.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.accept.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Ejemplo n.º 13
0
 def __set_properties(self):
     # begin wxGlade: formTube.__set_properties
     self.SetTitle("Configure Tube")
     self.SetSize(wx.DLG_SZE(self, (320, 280)))
     self.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_0.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['nnod'].SetValidator(numberValidator())
     self.label_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['ndof'].SetValidator(numberValidator())
     self.label_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['longitud'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['longitud'].SetValidator(numberValidator())
     self.checkbox_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.checkbox_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['curvature'].Enable(0)
     # self.checkbox_2.SetValue(1)
     self.label_4.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_1.SetMinSize(wx.DLG_SZE(self.button_1, (16, 12)))
     self.data['xnod'].CreateGrid(1, 1)
     self.data['xnod'].SetRowLabelSize(25)
     self.data['xnod'].SetColLabelSize(15)
     self.data['xnod'].EnableDragColSize(0)
     self.data['xnod'].EnableDragRowSize(0)
     self.data['xnod'].EnableDragGridSize(0)
     self.data['xnod'].SetColLabelValue(0, "Position")
     self.data['xnod'].SetMinSize(wx.DLG_SZE(self.data['xnod'], (62, 100)))
     self.data['xnod'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['xnod'].SetDefaultRowSize(18)
     self.data['xnod'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_5.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_2.SetMinSize(wx.DLG_SZE(self.button_2, (16, 12)))
     self.data['diameter'].CreateGrid(1, 1)
     self.data['diameter'].SetRowLabelSize(25)
     self.data['diameter'].SetColLabelSize(18)
     self.data['diameter'].EnableDragColSize(0)
     self.data['diameter'].EnableDragRowSize(0)
     self.data['diameter'].EnableDragGridSize(0)
     self.data['diameter'].SetColLabelValue(0, "Diameter")
     self.data['diameter'].SetMinSize(wx.DLG_SZE(self.data['diameter'], (60, 100)))
     self.data['diameter'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['diameter'].SetDefaultRowSize(18)
     self.data['diameter'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_6.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_3.SetMinSize(wx.DLG_SZE(self.button_3, (16, 12)))
     self.data['twall'].CreateGrid(1, 1)
     self.data['twall'].SetRowLabelSize(25)
     self.data['twall'].SetColLabelSize(18)
     self.data['twall'].EnableDragColSize(0)
     self.data['twall'].EnableDragRowSize(0)
     self.data['twall'].EnableDragGridSize(0)
     self.data['twall'].SetColLabelValue(0, "Temperature")
     self.data['twall'].SetMinSize(wx.DLG_SZE(self.data['twall'], (60, 100)))
     self.data['twall'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['twall'].SetDefaultRowSize(18)
     self.data['twall'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_7.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_9.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_4.SetMinSize(wx.DLG_SZE(self.button_4, (16, 12)))
     self.data['curvature'].CreateGrid(1, 1)
     self.data['curvature'].SetRowLabelSize(25)
     self.data['curvature'].SetColLabelSize(18)
     self.data['curvature'].EnableDragColSize(0)
     self.data['curvature'].EnableDragRowSize(0)
     self.data['curvature'].EnableDragGridSize(0)
     self.data['curvature'].SetColLabelValue(0, "Curvature")
     self.data['curvature'].SetMinSize(wx.DLG_SZE(self.data['curvature'], (60, 100)))
     self.data['curvature'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['curvature'].SetDefaultRowSize(18)
     self.data['curvature'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_general.SetScrollRate(10, 10)
     self.data['state_ini'].CreateGrid(1, 3)
     self.data['state_ini'].SetRowLabelSize(25)
     self.data['state_ini'].SetColLabelSize(15)
     self.data['state_ini'].EnableDragColSize(0)
     self.data['state_ini'].EnableDragRowSize(0)
     self.data['state_ini'].EnableDragGridSize(0)
     self.data['state_ini'].SetColLabelValue(0, "Density")
     self.data['state_ini'].SetColLabelValue(1, "Velocity")
     self.data['state_ini'].SetColLabelValue(2, "Pressure")
     self.data['state_ini'].SetMinSize(wx.DLG_SZE(self.data['state_ini'], (161, 100)))
     self.data['state_ini'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['state_ini'].SetDefaultRowSize(18)
     self.data['state_ini'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     
     self.data['typeSave'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['numNorm'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['histo'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['numNorm'].Enable(False)
     self.data['posNorm'].Enable(False)
     self.data['histo'].Enable(False)
     self.notebook_post.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.notebook_post.SetScrollRate(10, 10)
     self.data['posNorm'].CreateGrid(3, 1)
     self.data['posNorm'].SetRowLabelSize(25)
     self.data['posNorm'].SetColLabelSize(20)
     self.data['posNorm'].EnableDragColSize(0)
     self.data['posNorm'].EnableDragRowSize(0)
     self.data['posNorm'].EnableDragGridSize(0)
     self.data['posNorm'].SetColLabelValue(0, "X/L [0,1]:")
     self.data['posNorm'].SetMinSize(wx.DLG_SZE(self.data['state_ini'], (58,53)))
     self.data['posNorm'].SetDefaultCellFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['posNorm'].SetDefaultRowSize(18)
     self.data['posNorm'].SetLabelFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['label'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.label_12.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_constDiam.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_constDiam.SetMinSize(wx.DLG_SZE(self.button_2, (25, 12)))
     self.button_constTemp.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_constTemp.SetMinSize(wx.DLG_SZE(self.button_2, (25, 12)))
     self.button_linearDiam.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_linearDiam.SetMinSize(wx.DLG_SZE(self.button_2, (25, 12)))
     self.button_linearTemp.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_linearTemp.SetMinSize(wx.DLG_SZE(self.button_2, (25, 12)))
     self.button_6.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.button_6.SetMinSize(wx.DLG_SZE(self.button_2, (40, 12)))
     self.button_5.SetMinSize(wx.DLG_SZE(self.button_5, (16, 12)))
     self.notebook_state.SetScrollRate(10, 10)
     self.configure_notebook.SetMinSize(wx.DLG_SZE(self.configure_notebook, (270, 362)))
     self.configure_notebook.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, ""))
     self.panel_configure.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.accept.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))