@@ -57,34 +54,39 | |||
|
57 | 54 | #output_p2= p2.communicate()[0] No newline at end of file |
|
58 | 55 | #self.txtInfo.setText(output_p2) No newline at end of file |
|
59 | 56 | No newline at end of file |
|
57 | var_Dpath=self.txtDpath.text() No newline at end of file | |
|
60 | 58 | |
|
59 | No newline at end of file | |
|
61 | var_Dpath=self.txtDpath.text() No newline at end of file | |
|
62 | 60 | var_cmd="test -d "+str(var_Dpath) No newline at end of file |
|
63 | 61 | var_output=commands.getstatusoutput(var_cmd)[0] No newline at end of file |
|
64 | 62 | if var_output != 0: |
|
63 | No newline at end of file | |
|
65 | self.txtInfo.setText(str(var_output)) No newline at end of file | |
|
66 | 64 | return No newline at end of file |
|
67 | 65 | |
|
66 | No newline at end of file | |
|
68 | No newline at end of file | |
|
69 | 67 | var_Dtype=self.txtDtype.text() No newline at end of file |
|
70 | 68 | var_cmd="find " + str(var_Dpath) + " -name *."+ str(var_Dtype) +" | awk -F/ '{print substr($NF,2,7)}' | sort| uniq" No newline at end of file |
|
71 | 69 | output_p2=commands.getstatusoutput(var_cmd)[1] No newline at end of file |
|
72 | 70 | No newline at end of file |
|
71 | #INFO: Muestra los dias que se encontraron No newline at end of file | |
|
73 | 72 | self.txtInfo.setText(output_p2) No newline at end of file |
|
74 | 73 | |
|
74 | No newline at end of file | |
|
75 | var_list=[] No newline at end of file | |
|
No newline at end of file | ||
|
75 | self.var_list=[] No newline at end of file | |
|
76 | 76 | for i in range(0, (len(output_p2)+1)/8): |
|
77 | No newline at end of file | |
|
77 | var_list.append(output_p2[8*i:8*(i+1)-1]) No newline at end of file | |
|
78 | 78 | No newline at end of file |
|
79 | 79 | self.lstStartDay.clear() No newline at end of file |
|
80 | 80 | self.lstStopDay.clear() No newline at end of file |
|
81 | 81 | |
|
82 | No newline at end of file | |
|
82 | for i in var_list: No newline at end of file | |
|
83 | 83 | self.lstStartDay.addItem(i) No newline at end of file |
|
84 | 84 | self.lstStopDay.addItem(i) No newline at end of file |
|
85 | 85 | |
|
No newline at end of file | ||
|
86 | self.txtInfo.setText(str(self.lstStartDay.count())) No newline at end of file | |
|
87 | 86 | self.lstStopDay.setCurrentIndex(self.lstStartDay.count()-1) No newline at end of file |
|
87 | ||
|
No newline at end of file | ||
|
88 | #INFO: Muestra cuantos dias se encontraron | |
|
No newline at end of file | ||
|
89 | # self.txtInfo.setText(str(self.lstStartDay.count())) No newline at end of file | |
|
88 | 90 | No newline at end of file |
|
89 | 91 | @pyqtSignature("int") No newline at end of file |
|
90 | 92 | def on_lstDtype_activated(self, index): No newline at end of file |
@@ -154,7 +154,11 | |||
|
154 | 154 | <widget class="QLineEdit" name="txtElabel"/> No newline at end of file |
|
155 | 155 | </item> No newline at end of file |
|
156 | 156 | <item> |
|
157 | No newline at end of file | |
|
157 | <widget class="QLineEdit" name="txtCopys"/> No newline at end of file | |
|
No newline at end of file | ||
|
158 | <property name="text"> | |
|
No newline at end of file | ||
|
159 | <string>0</string> | |
|
No newline at end of file | ||
|
160 | </property> | |
|
No newline at end of file | ||
|
161 | </widget> No newline at end of file | |
|
158 | 162 | </item> No newline at end of file |
|
159 | 163 | </layout> No newline at end of file |
|
160 | 164 | </item> No newline at end of file |
@@ -2,7 +2,7 | |||
|
2 | 2 | No newline at end of file |
|
3 | 3 | # Form implementation generated from reading ui file '/home/ricardoar/principal/JRO_SVN/eric4/jro_backup_manager/ui/MainWindow.ui' No newline at end of file |
|
4 | 4 | # |
|
5 | No newline at end of file | |
|
5 | # Created: Mon Apr 26 10:36:51 2010 No newline at end of file | |
|
6 | 6 | # by: PyQt4 UI code generator 4.7.2 No newline at end of file |
|
7 | 7 | # No newline at end of file |
|
8 | 8 | # WARNING! All changes made in this file will be lost! No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now