示例#1
0
文件: simple.py 项目: cool-RR/Miro
 def __init__(self,  color=None):
     SimpleBin.__init__(self)
     self.view = FlippedView.alloc().init()
     if color is not None:
         self.set_background_color(color)
示例#2
0
 def calc_size_request(self):
     drawing_size = drawing.DrawingMixin.calc_size_request(self)
     container_size = SimpleBin.calc_size_request(self)
     return (max(container_size[0],
                 drawing_size[0]), max(container_size[1], drawing_size[1]))
示例#3
0
 def __init__(self):
     SimpleBin.__init__(self)
     self.view = DrawingView.alloc().init()
示例#4
0
 def calc_size_request(self):
     drawing_size = drawing.DrawingMixin.calc_size_request(self)
     container_size = SimpleBin.calc_size_request(self)
     return (max(container_size[0], drawing_size[0]), 
             max(container_size[1], drawing_size[1]))
示例#5
0
 def __init__(self):
     SimpleBin.__init__(self)
     self.view = DrawingView.alloc().init()
示例#6
0
 def __init__(self, color=None):
     SimpleBin.__init__(self)
     self.view = FlippedView.alloc().init()
     if color is not None:
         self.set_background_color(color)