From 86334464fdc3eafd97e0550e324e4054879c0ada Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 14 Jan 2017 18:08:19 +0100 Subject: Script to generate resource data --- generate_resources.py | 13 +++++++++++++ res/edit.gif | Bin 0 -> 119 bytes res/minus.gif | Bin 0 -> 112 bytes res/next.gif | Bin 0 -> 74 bytes res/plus.gif | Bin 0 -> 111 bytes res/refresh.gif | Bin 0 -> 104 bytes res/restart.gif | Bin 0 -> 149 bytes res/sync.gif | Bin 0 -> 106 bytes 8 files changed, 13 insertions(+) create mode 100644 generate_resources.py create mode 100644 res/edit.gif create mode 100644 res/minus.gif create mode 100644 res/next.gif create mode 100644 res/plus.gif create mode 100644 res/refresh.gif create mode 100644 res/restart.gif create mode 100644 res/sync.gif diff --git a/generate_resources.py b/generate_resources.py new file mode 100644 index 0000000..4895f86 --- /dev/null +++ b/generate_resources.py @@ -0,0 +1,13 @@ +import base64, glob + +print 'import Tix as tk' +print + +for image in glob.glob('res/*.gif'): + print image.upper().replace('.', '_').replace('RES\\', '').replace('_GIF', '_ICON'), '= tk.PhotoImage(data=\'\'\'' + content = base64.b64encode(file(image, 'rb').read()) + while len(content) > 0: + chunk = content[0:80] + content = content[80:] + print chunk + print '\'\'\')' diff --git a/res/edit.gif b/res/edit.gif new file mode 100644 index 0000000..9dab19e Binary files /dev/null and b/res/edit.gif differ diff --git a/res/minus.gif b/res/minus.gif new file mode 100644 index 0000000..48760d1 Binary files /dev/null and b/res/minus.gif differ diff --git a/res/next.gif b/res/next.gif new file mode 100644 index 0000000..3cc8e8b Binary files /dev/null and b/res/next.gif differ diff --git a/res/plus.gif b/res/plus.gif new file mode 100644 index 0000000..d187118 Binary files /dev/null and b/res/plus.gif differ diff --git a/res/refresh.gif b/res/refresh.gif new file mode 100644 index 0000000..a5211df Binary files /dev/null and b/res/refresh.gif differ diff --git a/res/restart.gif b/res/restart.gif new file mode 100644 index 0000000..584e687 Binary files /dev/null and b/res/restart.gif differ diff --git a/res/sync.gif b/res/sync.gif new file mode 100644 index 0000000..ceace6f Binary files /dev/null and b/res/sync.gif differ -- cgit v1.2.3