(self)
| 306 | self.update_position() |
| 307 | |
| 308 | def update_position(self): |
| 309 | self.style['position'] = 'absolute' |
| 310 | if self.refWidget: |
| 311 | if 'left' in self.refWidget.style and 'top' in self.refWidget.style: |
| 312 | self.style['left'] = gui.to_pix(gui.from_pix( |
| 313 | self.refWidget.style['left'])-gui.from_pix(self.style['width'])) |
| 314 | self.style['top'] = gui.to_pix(gui.from_pix( |
| 315 | self.refWidget.style['top'])-gui.from_pix(self.style['width'])) |
| 316 | |
| 317 | |
| 318 | class Project(gui.Container): |