示例#1
0
文件: _frame.py 项目: colshag/ANW
    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
示例#2
0
文件: frame.py 项目: 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()
示例#3
0
文件: frame.py 项目: 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()