Changeset 2825 for palm/trunk/SCRIPTS/palmrungui
- Timestamp:
- Feb 20, 2018 9:48:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrungui
r2718 r2825 1 #!/usr/bin/ python -B1 #!/usr/bin/env python 2 2 # -*- coding: utf-8 -*- 3 3 #--------------------------------------------------------------------------------# … … 25 25 # ----------------- 26 26 # $Id$ 27 # Adjusted to work with newest version of palmrun 28 # 29 # 2718 2018-01-02 08:49:38Z maronga 27 30 # Corrected "Former revisions" section 28 31 # … … 375 378 376 379 if ( initialize == True ):#and self.group_runcontrol.isEnabled() == True ): 377 self.group_runcontrol.setEnabled(True)378 380 self.group_execution.setEnabled(True) 379 381 self.group_job.findChild(QtGui.QComboBox,"drop_job").setEnabled(True) … … 383 385 384 386 elif ( param[0] == ""): 385 self.group_runcontrol.setEnabled(False)386 387 self.group_execution.setEnabled(False) 387 388 self.group_job.findChild(QtGui.QComboBox,"drop_job").setEnabled(False) … … 430 431 431 432 432 433 self.group_runcontrol.setEnabled(True)434 433 self.group_execution.setEnabled(True) 435 434 self.drop_job.setEnabled(True) … … 438 437 # Change in parameter "a" (run control list) 439 438 elif (id_str == "a"): 440 status_ts = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_ts").checkState()441 status_pr = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_pr").checkState()442 status_xy = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_xy").checkState()443 status_xz = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_xz").checkState()444 status_yz = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_yz").checkState()445 status_3d = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_3d").checkState()446 status_ma = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_ma").checkState()447 status_sp = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_sp").checkState()448 status_pts = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_pts").checkState()449 status_prt = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_prt").checkState()450 439 451 440 drop_job = self.group_job.findChild(QtGui.QComboBox,"drop_job").currentText() … … 472 461 param[0] = "\"d3%s" % (rc_flag) 473 462 474 if (status_ts == 2):475 param[0] = "%s ts%s" % (param[0],rc_flag)476 477 if (status_pr == 2):478 param[0] = "%s pr%s" % (param[0],rc_flag)479 480 if (status_xy == 2):481 param[0] = "%s xy%s" % (param[0],rc_flag)482 483 if (status_xz == 2):484 param[0] = "%s xz%s" % (param[0],rc_flag)485 486 if (status_yz == 2):487 param[0] = "%s yz%s" % (param[0],rc_flag)488 489 if (status_3d == 2):490 param[0] = "%s 3d%s" % (param[0],rc_flag)491 492 if (status_ma == 2):493 param[0] = "%s ma%s" % (param[0],rc_flag)494 495 if (status_sp == 2):496 param[0] = "%s sp%s" % (param[0],rc_flag)497 498 if (status_prt == 2):499 param[0] = "%s prt%s" % (param[0],rc_flag)500 501 if (status_pts == 2):502 param[0] = "%s pts%s" % (param[0],rc_flag)503 504 463 505 464 if (drop_job == "Restart run (coupled atmosphere ocean)" or drop_job == "Initial run (coupled atmosphere ocean)"): … … 507 466 rc_flag = "o#" 508 467 else: 509 rc_flag = "o f"468 rc_flag = "or" 510 469 511 470 param[0] = "%s d3%s" % (param[0],rc_flag) 512 471 513 if (status_ts == 2):514 param[0] = "%s ts%s" % (param[0],rc_flag)515 516 if (status_pr == 2):517 param[0] = "%s pr%s" % (param[0],rc_flag)518 519 if (status_xy == 2):520 param[0] = "%s xy%s" % (param[0],rc_flag)521 522 if (status_xz == 2):523 param[0] = "%s xz%s" % (param[0],rc_flag)524 525 if (status_yz == 2):526 param[0] = "%s yz%s" % (param[0],rc_flag)527 528 if (status_3d == 2):529 param[0] = "%s 3d%s" % (param[0],rc_flag)530 531 if (status_ma == 2):532 param[0] = "%s ma%s" % (param[0],rc_flag)533 534 if (status_sp == 2):535 param[0] = "%s sp%s" % (param[0],rc_flag)536 537 if (status_prt == 2):538 param[0] = "%s prt%s" % (param[0],rc_flag)539 540 if (status_pts == 2):541 param[0] = "%s pts%s" % (param[0],rc_flag)542 543 472 status_restarts = self.group_execution.findChild(QtGui.QCheckBox,"check_restarts").checkState() 544 473 … … 563 492 564 493 if (status_cycfill == 2): 565 param[0]="%s cycfill" % (param[0]) 494 param[0]="%s fill" % (param[0]) 495 496 status_svf = self.group_execution.findChild(QtGui.QCheckBox,"check_svf").checkState() 497 498 if (status_svf == 2): 499 param[0]="%s svf" % (param[0]) 566 500 567 501 param[0]="%s\"" % (param[0]) 568 502 503 569 504 if ( fwt_str == "remove"): 570 505 self.delete_commandline(id_str) … … 998 933 options_all = optionssplit[j] 999 934 options_2 = optionssplit[j][:2] 1000 1001 if (options_2 == "ts"): 1002 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_ts").setChecked(True) 1003 1004 if (options_2 == "pr" and options_all[:3] is not "prt"): 1005 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_pr").setChecked(True) 1006 1007 if (options_2 == "xy"): 1008 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_xy").setChecked(True) 1009 1010 if (options_2 == "xz"): 1011 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_xz").setChecked(True) 1012 1013 if (options_2 == "yz"): 1014 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_yz").setChecked(True) 1015 1016 if (options_2 == "3d"): 1017 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_3d").setChecked(True) 1018 1019 if (options_2 == "ma"): 1020 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_ma").setChecked(True) 1021 1022 if (options_2 == "sp"): 1023 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_sp").setChecked(True) 1024 1025 if (options_all[:3] == "prt"): 1026 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_prt").setChecked(True) 1027 1028 if (options_all[:3] == "pts"): 1029 self.group_runcontrol.findChild(QtGui.QCheckBox,"check_pts").setChecked(True) 1030 935 1031 936 if (options_2 == "d3"): 1032 937 if (options_all[:3][-1] == "#"): … … 1076 981 if ( nojob == True ): 1077 982 self.group_execution.setEnabled(False) 1078 self.group_runcontrol.setEnabled(False)1079 983 self.groupBox.findChild(QtGui.QPushButton,"button_start").setEnabled(False) 1080 984 self.menuBar.findChild(QtGui.QMenu,"menuStart").actions()[3].setEnabled(False) … … 1085 989 else: 1086 990 self.group_execution.setEnabled(True) 1087 self.group_runcontrol.setEnabled(True)1088 991 self.groupBox.findChild(QtGui.QPushButton,"button_start").setEnabled(True) 1089 992 self.menuBar.findChild(QtGui.QMenu,"menuStart").actions()[3].setEnabled(True)
Note: See TracChangeset
for help on using the changeset viewer.