Exemple #1
0
Fichier : panel.py Projet : m64/PEG
	def __init__(self, dockable=True, *args, **kwargs):
		widgets.Window.__init__(self, *args, **kwargs)
		ResizableBase.__init__(self, *args, **kwargs)
	
		self.dockable = dockable
		self._movable = self.real_widget.isMovable()
		self._resizable = self.resizable

		self._floating = True
		self._titlebarheight = 16
		
		self.dockarea = None
		
		self._editor = scripts.editor.getEditor()
		
		self._panel_startPos = (0, 0)
Exemple #2
0
	def __init__(self, dockable=True, *args, **kwargs):
		widgets.Window.__init__(self, *args, **kwargs)
		ResizableBase.__init__(self, *args, **kwargs)
	
		self.dockable = dockable
		self._movable = self.real_widget.isMovable()
		self._resizable = self.resizable

		self._floating = True
		self._titlebarheight = 16
		
		self.dockarea = None
		
		self._editor = scripts.editor.getEditor()
		
		self._panel_startPos = (0, 0)
	def __init__(self, side, resizable=True, *args, **kwargs):
		widgets.VBox.__init__(self, margins=(0,0,0,0), *args, **kwargs)
		ResizableBase.__init__(self, *args, **kwargs)
		
		self.cursor_id = 0
		self.cursor_type = 0
		
		self.vexpand=0
		self.hexpand=0
		
		self.side = side
		self.resizable_top = (side == "bottom")
		self.resizable_left = (side == "right")
		self.resizable_right = (side == "left")
		self.resizable_bottom = (side == "top")
		
		self.gui = None
		
		self.buildGui()
		self.tabwidgets = []
		self.panels = []
    def __init__(self, dockable=True, *args, **kwargs):

        argscopy = kwargs.copy()
        if "resizable" in argscopy:
            del argscopy["resizable"]
        widgets.Window.__init__(self, *args, **argscopy)
        ResizableBase.__init__(self, *args, **kwargs)

        self.dockable = dockable
        self._movable = self.real_widget.isMovable()
        self._resizable = self.resizable

        self._floating = True
        self._titlebarheight = 16

        self.dockarea = None

        self.dockareaname = ""

        self._editor = scripts.editor.getEditor()

        self._panel_startPos = (0, 0)
        self.abs_pos_backup = ()
Exemple #5
0
    def __init__(self, resizable=None, *args, **kwargs):
        if resizable == None:
            resizable = False

        widgets.VBox.__init__(self, *args, **kwargs)
        ResizableBase.__init__(self, resizable, *args, **kwargs)

        self.tabs = []

        self.buttonbox = widgets.HBox()
        self.widgetarea = widgets.VBox()
        self.buttonbox.hexpand = 1
        self.buttonbox.vexpand = 0
        self.widgetarea.hexpand = 1
        self.widgetarea.vexpand = 1

        self.addChild(self.buttonbox)
        self.addChild(self.widgetarea)

        self.resizable_top = False
        self.resizable_left = False
        self.resizable_right = False
        self.resizable_bottom = False
Exemple #6
0
	def __init__(self, dockable=True, *args, **kwargs):
		
		argscopy = kwargs.copy()
		if "resizable" in argscopy:
			del argscopy["resizable"]
		widgets.Window.__init__(self, *args, **argscopy)
		ResizableBase.__init__(self, *args, **kwargs)
		
		self.dockable = dockable
		self._movable = self.real_widget.isMovable()
		self._resizable = self.resizable

		self._floating = True
		self._titlebarheight = 16
		
		self.dockarea = None
		
		self.dockareaname = ""
		
		self._editor = scripts.editor.getEditor()
		
		self._panel_startPos = (0, 0)
		self.abs_pos_backup = ()
Exemple #7
0
	def __init__(self, resizable=None, *args, **kwargs):
		if resizable == None:
			resizable = False

		widgets.VBox.__init__(self, *args, **kwargs)
		ResizableBase.__init__(self, resizable, *args, **kwargs)
		
		self.tabs = []
		
		self.buttonbox = widgets.HBox()
		self.widgetarea = widgets.VBox()
		self.buttonbox.hexpand = 1
		self.buttonbox.vexpand = 0
		self.widgetarea.hexpand = 1
		self.widgetarea.vexpand = 1
		
		self.addChild(self.buttonbox)
		self.addChild(self.widgetarea)
	
		self.resizable_top = False
		self.resizable_left = False
		self.resizable_right = False
		self.resizable_bottom = False