update gifs
Before Width: | Height: | Size: 883 B After Width: | Height: | Size: 967 B |
Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 917 B After Width: | Height: | Size: 999 B |
Before Width: | Height: | Size: 891 B After Width: | Height: | Size: 1,002 B |
Before Width: | Height: | Size: 809 B After Width: | Height: | Size: 914 B |
Before Width: | Height: | Size: 893 B After Width: | Height: | Size: 992 B |
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 1,010 B |
Before Width: | Height: | Size: 956 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 956 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 913 B After Width: | Height: | Size: 996 B |
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 992 B |
Before Width: | Height: | Size: 929 B After Width: | Height: | Size: 1,010 B |
Before Width: | Height: | Size: 935 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 921 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 917 B |
Before Width: | Height: | Size: 920 B After Width: | Height: | Size: 967 B |
Before Width: | Height: | Size: 829 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 996 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 913 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 957 B After Width: | Height: | Size: 1,004 B |
Before Width: | Height: | Size: 882 B After Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 1,008 B |
Before Width: | Height: | Size: 751 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 989 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 1,017 B |
Before Width: | Height: | Size: 782 B After Width: | Height: | Size: 914 B |
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 1,002 B |
Before Width: | Height: | Size: 897 B After Width: | Height: | Size: 958 B |
Before Width: | Height: | Size: 967 B After Width: | Height: | Size: 1,022 B |
Before Width: | Height: | Size: 885 B After Width: | Height: | Size: 995 B |
Before Width: | Height: | Size: 886 B After Width: | Height: | Size: 995 B |
Before Width: | Height: | Size: 918 B After Width: | Height: | Size: 991 B |
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 996 B |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 914 B |
Before Width: | Height: | Size: 990 B After Width: | Height: | Size: 1,020 B |
|
@ -4,6 +4,11 @@ import os
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
|
|
||||||
|
# LOG=util.log
|
||||||
|
global LOG
|
||||||
|
import logging
|
||||||
|
LOG = logging.getLogger('app.'+__name__)
|
||||||
|
log = lambda x: LOG.info(x)
|
||||||
|
|
||||||
class SmileyLoader:
|
class SmileyLoader:
|
||||||
"""
|
"""
|
||||||
|
@ -31,7 +36,7 @@ class SmileyLoader:
|
||||||
self._smileys = json.loads(fl.read())
|
self._smileys = json.loads(fl.read())
|
||||||
fl.seek(0)
|
fl.seek(0)
|
||||||
tmp = json.loads(fl.read(), object_pairs_hook=OrderedDict)
|
tmp = json.loads(fl.read(), object_pairs_hook=OrderedDict)
|
||||||
print('Smiley pack {} loaded'.format(pack_name))
|
LOG.info('Smiley pack {} loaded'.format(pack_name))
|
||||||
keys, values, self._list = [], [], []
|
keys, values, self._list = [], [], []
|
||||||
for key, value in tmp.items():
|
for key, value in tmp.items():
|
||||||
value = util.join_path(self.get_smileys_path(), value)
|
value = util.join_path(self.get_smileys_path(), value)
|
||||||
|
@ -42,7 +47,7 @@ class SmileyLoader:
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._smileys = {}
|
self._smileys = {}
|
||||||
self._list = []
|
self._list = []
|
||||||
print('Smiley pack {} was not loaded. Error: {}'.format(pack_name, ex))
|
LOG.error('Smiley pack {} was not loaded. Error: {}'.format(pack_name, str(ex)))
|
||||||
|
|
||||||
def get_smileys_path(self):
|
def get_smileys_path(self):
|
||||||
return util.join_path(util.get_smileys_directory(), self._curr_pack) if self._curr_pack is not None else None
|
return util.join_path(util.get_smileys_directory(), self._curr_pack) if self._curr_pack is not None else None
|
||||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1,022 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.6 KiB |