def __init__(self, parent, svgPath, position):
        OverlayWindow.__init__(self, parent)

        self.myparent = parent
        self.myposition = position
        self.svgPath = svgPath
        self.connect_after("expose-event", self.__onExposeEvent)

        targets = [("GTK_NOTEBOOK_TAB", gtk.TARGET_SAME_APP, 0xbadbeef)]
        self.drag_dest_set(gtk.DEST_DEFAULT_DROP | gtk.DEST_DEFAULT_MOTION,
                           targets, gtk.gdk.ACTION_MOVE)
        self.drag_dest_set_track_motion(True)
        self.connect("drag-motion", self.__onDragMotion)
        self.connect("drag-leave", self.__onDragLeave)
        self.connect("drag-drop", self.__onDragDrop)

        self.hovered = False

        self.myparentAlloc = None
        self.myparentPos = None
        self.hasHole = False
Example #2
0
 def __init__ (self, parent, svgPath, position):
     OverlayWindow.__init__(self, parent)
     
     self.myparent = parent
     self.myposition = position
     self.svgPath = svgPath
     self.connect_after("expose-event", self.__onExposeEvent)
     
     targets = [("GTK_NOTEBOOK_TAB", gtk.TARGET_SAME_APP, 0xbadbeef)]
     self.drag_dest_set(gtk.DEST_DEFAULT_DROP | gtk.DEST_DEFAULT_MOTION,
                        targets, gtk.gdk.ACTION_MOVE)
     self.drag_dest_set_track_motion(True)
     self.connect("drag-motion", self.__onDragMotion)
     self.connect("drag-leave", self.__onDragLeave)
     self.connect("drag-drop", self.__onDragDrop)
     
     self.hovered = False
     
     self.myparentAlloc = None
     self.myparentPos = None
     self.hasHole = False
Example #3
0
 def __init__ (self, parent, northSvg, eastSvg, southSvg, westSvg, centerSvg, bgSvg):
     OverlayWindow.__init__(self, parent)
     
     self.myparent = parent
     self.svgs = (northSvg, eastSvg, southSvg, westSvg, centerSvg)
     self.bgSvg = bgSvg
     self.size = ()
     self.connect_after("expose-event", self.__onExposeEvent)
     self.currentHovered = -1
     
     targets = [("GTK_NOTEBOOK_TAB", gtk.TARGET_SAME_APP, 0xbadbeef)]
     self.drag_dest_set(gtk.DEST_DEFAULT_DROP | gtk.DEST_DEFAULT_MOTION,
                        targets, gtk.gdk.ACTION_MOVE)
     self.drag_dest_set_track_motion(True)
     self.connect("drag-motion", self.__onDragMotion)
     self.connect("drag-leave", self.__onDragLeave)
     self.connect("drag-drop", self.__onDragDrop)
     
     self.myparentAlloc = None
     self.myparentPos = None
     self.hasHole = False
     self.size = ()
Example #4
0
 def __init__ (self, parent, northSvg, eastSvg, southSvg, westSvg, centerSvg, bgSvg):
     OverlayWindow.__init__(self, parent)
     
     self.myparent = parent
     self.svgs = (northSvg, eastSvg, southSvg, westSvg, centerSvg)
     self.bgSvg = bgSvg
     self.size = ()
     self.connect_after("expose-event", self.__onExposeEvent)
     self.currentHovered = -1
     
     targets = [("GTK_NOTEBOOK_TAB", gtk.TARGET_SAME_APP, 0xbadbeef)]
     self.drag_dest_set(gtk.DEST_DEFAULT_DROP | gtk.DEST_DEFAULT_MOTION,
                        targets, gtk.gdk.ACTION_MOVE)
     self.drag_dest_set_track_motion(True)
     self.connect("drag-motion", self.__onDragMotion)
     self.connect("drag-leave", self.__onDragLeave)
     self.connect("drag-drop", self.__onDragDrop)
     
     self.myparentAlloc = None
     self.myparentPos = None
     self.hasHole = False
     self.size = ()
 def __init__ (self, parent):
     OverlayWindow.__init__(self, parent)
     self.myparent = parent
     self.connect_after("expose-event", self.__onExpose)