def __new__(cls, frame): self = _FrameWindow.__new__(cls, frame) self.id = window.create(self.frame.parent.id, xcb.xproto.CW.BackPixel, [self.frame.colors[self.frame.state]['bg']]) return self
def __new__(cls, frame): self = _FrameWindow.__new__(cls, frame) self.id = window.create(self.frame.parent.id, xcb.xproto.CW.BackPixmap, [xcb.xproto.BackPixmap.ParentRelative]) return self
def __new__(cls, frame, ident): self = _FrameWindow.__new__(cls, frame) self.id = window.create(self.frame.parent.id, xcb.xproto.CW.BackPixmap | xcb.xproto.CW.EventMask, [xcb.xproto.BackPixmap.ParentRelative, xcb.xproto.EventMask.ButtonPress | xcb.xproto.EventMask.ButtonRelease | xcb.xproto.EventMask.EnterWindow | xcb.xproto.EventMask.LeaveWindow]) self.ident = ident return self
def __new__(cls, frame, frm_ident, cursor, direction): self = _FrameWindow.__new__(cls, frame) mask = (xcb.xproto.CW.BackPixmap | xcb.xproto.CW.EventMask | xcb.xproto.CW.Cursor) values = [xcb.xproto.BackPixmap.ParentRelative, xcb.xproto.EventMask.ButtonPress | xcb.xproto.EventMask.ButtonRelease, cursor] self.id = window.create(self.frame.parent.id, mask, values) self.frm_ident = frm_ident self.cursor = cursor self.direction = direction return self
def __new__(cls, frame, frm_ident, cursor, direction): self = _FrameWindow.__new__(cls, frame) mask = (xcb.xproto.CW.BackPixmap | xcb.xproto.CW.EventMask | xcb.xproto.CW.Cursor) values = [ xcb.xproto.BackPixmap.ParentRelative, xcb.xproto.EventMask.ButtonPress | xcb.xproto.EventMask.ButtonRelease, cursor ] self.id = window.create(self.frame.parent.id, mask, values) self.frm_ident = frm_ident self.cursor = cursor self.direction = direction return self