

def init_floating_node(self, node, frame):
    ' Initialize a floating node for the given frame.\n\n        Parameters\n        ----------\n        node : ItemLayout or AreaLayout\n            The layout node for the given floating frame.\n\n        frame : QDockFrame\n            The floating dock frame.\n\n        '
    node.floating = True
    node.linked = frame.isLinked()
    node.maximized = frame.isMaximized()
    if frame.isMaximized():
        geo = frame.normalGeometry()
    else:
        geo = frame.geometry()
    node.geometry = (geo.x(), geo.y(), geo.width(), geo.height())

dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/layout_saver.py LayoutSaver.init_floating_node/original