示例#1
0
    def window(self):
        """
        Floating window associated to FX, if it exists.

        :type: Window or NoneType
        """
        window = reapy.Window(self.functions["GetFloatingWindow"](
            self.parent.id, self.index))
        if not window._is_defined:
            window = None
        return window
示例#2
0
def get_main_window():
    """
    Return main window.

    Returns
    -------
    window : Window
        Main window.
    """
    window = reapy.Window(RPR.GetMainHwnd())
    return window