Beispiel #1
0
 def createBitmap(self, x, y, w = 0, h = 0):
     """创建图片控件(Bitmap)
     """
     x = self.__GET_POS(x, w)
     y = self.__GET_POS_Y(y, h)
     [x, y, w, h] = self.__GET_POS_SIZE(x, y, w, h)
     self.__GET_MAX(x, y, w, h)
     
     stBitmap = bitmap(self.panel, pos = (x, y), size = (w, h))
     return stBitmap
Beispiel #2
0
 def addBitmap(self, title):
     pt = wx.Panel(self)
     [w, h] = self.GetSize()
     wgt = bitmap(pt,(0,0), (w-10, h-10))
     #sizer = wx.BoxSizer(wx.VERTICAL)
     #sizer.Add(wgt.widget, 1, wx.ALL|wx.EXPAND, 5)
     #pt.SetSizer(sizer)
     self.AddPage(pt, title)
     return wgt
     pass