Ejemplo n.º 1
0
    def __init__(self, x, y, w, h, title, topmost=0):
        self.theme = getTheme()
        self.innerWidth = w
        self.innerHeight = h
        self.title = title

        self.dockables = {
        }  # map of dockable positions to list of docked items
        self.interiorRect = (0, 0, w, h)

        Window.__init__(self, x, y, w, h, topmost)
        self.setTitle(self.title)

        #setup interior
        self.placeInteriorObjects()

        self.registerEvent(pyui.locals.LMOUSEBUTTONDOWN, self._pyuiMouseDown)
        self.registerEvent(pyui.locals.LMOUSEBUTTONUP, self._pyuiMouseUp)
        self.registerEvent(pyui.locals.MOUSEMOVE, self._pyuiMouseMotion)
        self.moving = 0
        self.resizing = 0
        self.startX = 0
        self.startY = 0
        self.resizingCursor = 0
        self.movingCursor = 0
        self.backImage = None
Ejemplo n.º 2
0
Archivo: frame.py Proyecto: colshag/ANW
    def __init__(self, x, y, w, h, title, topmost=0):
        self.theme = getTheme()
        self.title = title
        self._menuBar = None
        self.innerRect = (0, 0, w, h)

        Window.__init__(self, x, y, w, h, topmost)
        self.setTitle(self.title)

        self.resize(w, h)

        self.registerEvent(pyui.locals.LMOUSEBUTTONDOWN, self._pyuiMouseDown)
        self.registerEvent(pyui.locals.LMOUSEBUTTONUP, self._pyuiMouseUp)
        self.registerEvent(pyui.locals.MOUSEMOVE, self._pyuiMouseMotion)
        self.moving = 0
        self.resizing = 0
        self.startX = 0
        self.startY = 0
        self.hitList = []
        self.resizingCursor = 0
        self.movingCursor = 0
        self.backImage = None
        self.calcInnerRect()
        self.placeInnerObjects()
Ejemplo n.º 3
0
Archivo: frame.py Proyecto: burito/PyUI
    def __init__(self, x, y, w, h, title, topmost = 0):
        self.theme = getTheme()
        self.title = title
        self._menuBar = None
        self.innerRect = (0,0,w,h)
        
        Window.__init__(self, x, y, w, h, topmost)
        self.setTitle(self.title)

        self.resize(w, h)
        
        self.registerEvent(pyui.locals.LMOUSEBUTTONDOWN, self._pyuiMouseDown)
        self.registerEvent(pyui.locals.LMOUSEBUTTONUP, self._pyuiMouseUp)
        self.registerEvent(pyui.locals.MOUSEMOVE, self._pyuiMouseMotion)
        self.moving = 0
        self.resizing = 0
        self.startX = 0
        self.startY = 0
        self.hitList = []
        self.resizingCursor=0
        self.movingCursor=0
        self.backImage=None
        self.calcInnerRect()
        self.placeInnerObjects()