Changeset 4420 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Feb 24, 2020 2:13:56 PM (5 years ago)
Author:
maronga
Message:

added steering for NetCDF output for wind turbine model; minor fix in palmrungui

Location:
palm/trunk/SCRIPTS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrungui

    r4411 r4420  
    2525# -----------------
    2626# $Id$
     27# Bugfix: minor fixes related to start buttons
     28#
     29# 4411 2020-02-18 14:28:02Z maronga
    2730# Added new features: individual tag for submitted runs, automatic finding of
    2831# configuration, start of palmbuild from GUI
     
    177180    def startpalmrun(self):
    178181        palmrunline = str(self.groupBox.findChild(QtGui.QLineEdit,"commandline").text())
    179         userline = str(self.group_advanced.findChild(QtGui.QLineEdit,"line_user").text())
     182        userline    = str(self.group_advanced.findChild(QtGui.QLineEdit,"line_user").text())
    180183       
    181184        # Check for empty line
     
    246249        palmbuildline = 'palmbuild -c ' + str(self.group_execution.findChild(QtGui.QComboBox, "combo_configuration").currentText())
    247250       
     251        palmrunline_save = str(self.groupBox.findChild(QtGui.QLineEdit,"commandline").text())
     252       
    248253        # Disable the main window
     254        palmbuildline_save = palmbuildline
    249255        self.tabWidget.setEnabled(False)
    250256        self.groupBox.findChild(QtGui.QPushButton,"button_start").setEnabled(False)
    251257        self.groupBox.findChild(QtGui.QLineEdit,"line_tag").setEnabled(False) 
     258        self.groupBox.findChild(QtGui.QPushButton,"button_start").setText("wait...") 
     259        self.group_execution.findChild(QtGui.QPushButton,"button_palmbuild").setText("wait...")
    252260        self.groupBox.findChild(QtGui.QLineEdit,"commandline").setText("Executing palmbuild in xterm...")       
    253261       
     
    284292        self.groupBox.findChild(QtGui.QPushButton,"button_start").setEnabled(True)
    285293        self.groupBox.findChild(QtGui.QLineEdit,"line_tag").setEnabled(True)
    286        
     294        self.groupBox.findChild(QtGui.QPushButton,"button_start").setText("palmrun")
     295        self.groupBox.findChild(QtGui.QLineEdit,"commandline").setText(palmrunline_save)
     296        self.group_execution.findChild(QtGui.QPushButton,"button_palmbuild").setText("(re-)build")     
    287297        # Reload recent jobs
    288298        self.recent_jobs(50)
  • palm/trunk/SCRIPTS/palmrungui_files/mainwindow.ui

    r4411 r4420  
    14111411     <y>0</y>
    14121412     <width>1185</width>
    1413      <height>19</height>
     1413     <height>30</height>
    14141414    </rect>
    14151415   </property>
     
    14191419      <x>261</x>
    14201420      <y>103</y>
    1421       <width>147</width>
    1422       <height>156</height>
     1421      <width>128</width>
     1422      <height>189</height>
    14231423     </rect>
    14241424    </property>
     
    15981598   <hints>
    15991599    <hint type="sourcelabel">
    1600      <x>202</x>
    1601      <y>515</y>
     1600     <x>206</x>
     1601     <y>540</y>
    16021602    </hint>
    16031603    <hint type="destinationlabel">
     
    16141614   <hints>
    16151615    <hint type="sourcelabel">
    1616      <x>240</x>
    1617      <y>515</y>
     1616     <x>244</x>
     1617     <y>540</y>
    16181618    </hint>
    16191619    <hint type="destinationlabel">
     
    22922292     <x>1182</x>
    22932293     <y>495</y>
    2294     </hint>
    2295    </hints>
    2296   </connection>
    2297   <connection>
    2298    <sender>button_start</sender>
    2299    <signal>clicked()</signal>
    2300    <receiver>MainWindow</receiver>
    2301    <slot>startpalmbuild()</slot>
    2302    <hints>
    2303     <hint type="sourcelabel">
    2304      <x>106</x>
    2305      <y>756</y>
    2306     </hint>
    2307     <hint type="destinationlabel">
    2308      <x>-3</x>
    2309      <y>672</y>
    23102294    </hint>
    23112295   </hints>
Note: See TracChangeset for help on using the changeset viewer.