Commit d6cf933d authored by Dan Pascu's avatar Dan Pascu

Adjusted spacing

parent 02449b21
...@@ -478,13 +478,16 @@ class IconDescriptor(object): ...@@ -478,13 +478,16 @@ class IconDescriptor(object):
def __init__(self, filename): def __init__(self, filename):
self.filename = filename self.filename = filename
self.icon = None self.icon = None
def __get__(self, obj, objtype): def __get__(self, obj, objtype):
if self.icon is None: if self.icon is None:
self.icon = QIcon(self.filename) self.icon = QIcon(self.filename)
self.icon.filename = self.filename self.icon.filename = self.filename
return self.icon return self.icon
def __set__(self, obj, value): def __set__(self, obj, value):
raise AttributeError("attribute cannot be set") raise AttributeError("attribute cannot be set")
def __delete__(self, obj): def __delete__(self, obj):
raise AttributeError("attribute cannot be deleted") raise AttributeError("attribute cannot be deleted")
...@@ -552,6 +555,7 @@ class FileDescriptor(object): ...@@ -552,6 +555,7 @@ class FileDescriptor(object):
ui_class, base_class = uic.loadUiType(Resources.get('chat_widget.ui')) ui_class, base_class = uic.loadUiType(Resources.get('chat_widget.ui'))
class ChatWidget(base_class, ui_class): class ChatWidget(base_class, ui_class):
implements(IObserver) implements(IObserver)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment