Mercurial > fife-parpg
diff engine/extensions/pychan/manager.py @ 188:06dddc96ce54
* Fixed some space and tab mixing
* Fixed a small bug in manager.py, thanks to phoku for the pointer.
author | nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 26 Feb 2009 11:26:01 +0000 |
parents | bb9902910067 |
children |
line wrap: on
line diff
--- a/engine/extensions/pychan/manager.py Wed Feb 25 20:58:09 2009 +0000 +++ b/engine/extensions/pychan/manager.py Thu Feb 26 11:26:01 2009 +0000 @@ -27,7 +27,7 @@ self.styles = {} self.addStyle('default',DEFAULT_STYLE) - Manager.manager = self + Manager.manager = self # Setup synchronous dialogs self.mainLoop = None @@ -125,8 +125,8 @@ return style_copy def loadImage(self,filename): - index = self.engine.imagePool.addResourceFromFile(filename) - return fife.GuiImage(index,self.engine.imagePool) + index = self.engine.getImagePool().addResourceFromFile(filename) + return fife.GuiImage(index,self.engine.getImagePool()) # Default Widget style. @@ -137,34 +137,34 @@ 'base_color' : fife.Color(0,0,100), 'foreground_color' : fife.Color(255,255,255), 'background_color' : fife.Color(0,0,0), - }, + }, 'Button' : { 'border_size': 0, 'margins' : (10,5), - }, + }, ('CheckBox','RadioButton') : { 'border_size': 0, - }, + }, 'TextBox' : { 'border_size' : 0, - }, + }, 'Label' : { 'border_size': 0, - }, + }, 'ListBox' : { 'border_size': 0, - }, + }, 'Window' : { 'border_size': 1, 'margins': (5,5), - }, + }, ('Container','HBox','VBox') : { 'border_size': 0, 'opaque' : False - }, + }, 'Icon' : { 'border_size' : 0 - }, + }, 'Slider' : { 'border_size' : 0 }