Advertisement
freakrho

wxPython - StaticBitmap class

Dec 26th, 2014
8,649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. class CImage(wx.StaticBitmap):
  2.     def __init__(self, parent, aBitmap, *args, **kwargs):
  3.         wx.StaticBitmap.__init__(self, parent, -1, aBitmap, *args, size=(aBitmap.GetWidth(), aBitmap.GetHeight()), **kwargs)
  4.    
  5.     def Add(self, aBox):
  6.         aBox.Add(self, 0, wx.ALIGN_CENTER)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement