Skip to content

Commit 10adc0a

Browse files
author
emijrp
committed
preparing GUI
git-svn-id: http://wikiteam.googlecode.com/svn/trunk@360 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
1 parent 275b7e7 commit 10adc0a

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

commonschecker.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,12 @@ def main():
8888
if i.filename == unicode('%s/%s' % (startdate.strftime('%Y/%m/%d'), img_saved_as), 'utf-8'):
8989
if str(i.file_size) == img_size:
9090
ok = True
91+
elif i.file_size == 0:
92+
error = 'empty'
9193
else:
92-
print i.file_size, img_size
93-
error = 'corrupt'
94+
error = 'corrupt (%s of %s bytes)' % (i.file_size, img_size)
9495
if not ok:
96+
print img_name, img_saved_as, error
9597
errors.append([img_saved_as, error])
9698
if errors:
9799
print 'This .zip contains errors:'

gui.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
4+
# Copyright (C) 2011-2012 WikiTeam
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
18+
import Tkinter
19+
import ttk
20+

0 commit comments

Comments
 (0)