예제 #1
0
파일: drawing.py 프로젝트: fredvdd/Swan
 def birth(self, size):
   ContainerWidget.birth(self, [])
   self.size = size
   self.screen = None
   self.rects = []
   self.lines = []
   self.mouselistener = None
예제 #2
0
파일: drawing.py 프로젝트: fredvdd/Swan
 def unregister(self):
   if self.screen and self.mouselistener:
     sync(self.screen.nomouselisten(self))
   ContainerWidget.unregister(self)
예제 #3
0
파일: layout.py 프로젝트: fredvdd/Swan
 def birth(self, label, child):
   self.label = label
   ContainerWidget.birth(self, [child])
예제 #4
0
파일: layout.py 프로젝트: fredvdd/Swan
 def birth(self, first, second):
   ContainerWidget.birth(self, [first, second])
예제 #5
0
파일: layout.py 프로젝트: fredvdd/Swan
 def birth(self, children):
   ContainerWidget.birth(self, children)
   self.homogenious = True