Changeset 4481 for palm/trunk/SCRIPTS/palmrungui
- Timestamp:
- Mar 31, 2020 6:55:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrungui
r4470 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # … … 25 25 # ----------------- 26 26 # $Id$ 27 # Bugfixes: - reading history lines discard button caused error message 28 # - deleting of USER_CODE files did not work 29 # 30 # 4470 2020-03-24 06:52:19Z maronga 27 31 # Added file size output, more I/O functionalities, new/removed buttons 28 32 # … … 1112 1116 opt.exec_() 1113 1117 1114 palmrunline = str(history_entry) 1115 palmrunline = palmrunline[17:] 1116 palmrunline = palmrunline[:len(palmrunline)-1] 1117 palmrunline = filter(None,palmrunline.split("("))[0] 1118 self.groupBox.findChild(QtGui.QLineEdit,"commandline").setText(palmrunline) 1119 1120 # Set selected item to jobname in "available jobs" list 1121 jobname = str(history_entry[17:]) 1122 jobname = filter(None,jobname.split(" -r"))[1] 1123 jobname = jobname.strip() 1124 jobname = filter(None,jobname.split(" "))[0] 1125 jobname = jobname.replace("\"","") 1126 item2int = self.list_jobs.findItems(jobname,QtCore.Qt.MatchCaseSensitive) 1127 1128 if ( item2int != [] ): 1129 self.list_jobs.setCurrentItem(item2int[0]) 1130 self.update_input() 1131 1132 # Add tooltip tag 1133 tag = str(history_entry).split('\n')[0] 1134 tag = filter(None,tag.split("("))[1] 1135 tag = tag.replace(")","") 1136 self.groupBox.findChild(QtGui.QLineEdit,"line_tag").setText(tag) 1118 if ( history_entry != "" ): 1119 palmrunline = str(history_entry) 1120 palmrunline = palmrunline[17:] 1121 palmrunline = palmrunline[:len(palmrunline)-1] 1122 palmrunline = filter(None,palmrunline.split("("))[0] 1123 self.groupBox.findChild(QtGui.QLineEdit,"commandline").setText(palmrunline) 1124 1125 # Set selected item to jobname in "available jobs" list 1126 jobname = str(history_entry[17:]) 1127 jobname = filter(None,jobname.split(" -r"))[1] 1128 jobname = jobname.strip() 1129 jobname = filter(None,jobname.split(" "))[0] 1130 jobname = jobname.replace("\"","") 1131 item2int = self.list_jobs.findItems(jobname,QtCore.Qt.MatchCaseSensitive) 1132 1133 if ( item2int != [] ): 1134 self.list_jobs.setCurrentItem(item2int[0]) 1135 self.update_input() 1136 1137 # Add tooltip tag 1138 tag = str(history_entry).split('\n')[0] 1139 tag = filter(None,tag.split("("))[1] 1140 tag = tag.replace(")","") 1141 self.groupBox.findChild(QtGui.QLineEdit,"line_tag").setText(tag) 1137 1142 1138 # Process palmrungui to set up gui controls1139 self.setup_gui(palmrunline)1143 # Process palmrungui to set up gui controls 1144 self.setup_gui(palmrunline) 1140 1145 1141 1146 … … 1606 1611 sel_files = self.list_user.selectedItems() 1607 1612 1608 input_dir = job_dir + "/" + sel_job + "/USER /"1613 input_dir = job_dir + "/" + sel_job + "/USER_CODE/" 1609 1614 1610 1615 for i in range(0,len(sel_files)): … … 1745 1750 def DiscardHistory(self): 1746 1751 1747 1752 global history_entry 1753 history_entry = "" 1748 1754 self.close() 1749 1755
Note: See TracChangeset
for help on using the changeset viewer.