dabo Commit
Revision 6834
Date: 2011-09-08 14:04:12 -0700 (Thu, 08 Sep 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6834
Changed:
U trunk/dabo/ui/uiwx/dPageFrameMixin.py
Log:
Changed image size assignment method from fixed to dynamic.
Diff:
Modified: trunk/dabo/ui/uiwx/dPageFrameMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPageFrameMixin.py 2011-09-08 21:00:41 UTC (rev
6833)
+++ trunk/dabo/ui/uiwx/dPageFrameMixin.py 2011-09-08 21:04:12 UTC (rev
6834)
@@ -126,7 +126,7 @@
img = dabo.ui.strToBmp(img)
il = self.GetImageList()
if not il:
- il = wx.ImageList(16, 16, initialCount=0)
+ il = wx.ImageList(img.GetWidth(), img.GetHeight(),
initialCount=0)
self.AssignImageList(il)
idx = il.Add(img)
self._imageList[key] = idx
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]