Mercurial > fife-parpg
comparison clients/editor/plugins/objectselector.py @ 195:13e5be34484e
* Fixed a minor bug with the preview picture in the ObjectSelector
author | nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 01 Mar 2009 11:22:04 +0000 |
parents | 9631a2958851 |
children | c344836f4210 |
comparison
equal
deleted
inserted
replaced
194:9631a2958851 | 195:13e5be34484e |
---|---|
113 def objectSelected(self, obj): | 113 def objectSelected(self, obj): |
114 """This is used as callback function to notify the editor that a new object has | 114 """This is used as callback function to notify the editor that a new object has |
115 been selected. | 115 been selected. |
116 @param obj: fife.Object instance""" | 116 @param obj: fife.Object instance""" |
117 self.preview.image = self._getImage(obj) | 117 self.preview.image = self._getImage(obj) |
118 self.gui.adaptLayout() | |
118 self.notify(obj) | 119 self.notify(obj) |
119 | 120 |
120 def update(self): | 121 def update(self): |
121 self.namespaces.items = self.engine.getModel().getNamespaces() | 122 self.namespaces.items = self.engine.getModel().getNamespaces() |
122 self.namespaces.selected = 0 | 123 self.namespaces.selected = 0 |