moo.OpenInfo - information for opening a file
Prev | Chapter 3. medit Python API | Next

## moo.OpenInfo - information for opening a file

Object which contains filename, character encoding, line number, and options to use in `moo.Editor.open_file()`.

    gobject.Object
      |
      +-- moo.OpenInfo

### OpenInfo()

    OpenInfo(path, encoding=None, line=-1, flags=0)

`path` : | `str`
`encoding` : | `str` or `None`
`line` : | `int`
`flags` : | `moo.OpenFlags`

`Returns:` `moo.OpenInfo`

### new_file()

    OpenInfo.new_file(file, encoding=None, line=-1, flags=0)

`file` : | `gio.File`
`encoding` : | `str` or `None`
`line` : | `int`
`flags` : | `moo.OpenFlags`

`Returns:` `moo.OpenInfo`

### new_uri()

    OpenInfo.new_uri(uri, encoding=None, line=-1, flags=0)

`uri` : | `str`
`encoding` : | `str` or `None`
`line` : | `int`
`flags` : | `moo.OpenFlags`

`Returns:` `moo.OpenInfo`

### add_flags()

    open_info.add_flags(flags)

`flags` : | `moo.OpenFlags`

### dup()

    open_info.dup()

`Returns:` `moo.OpenInfo`

### get_flags()

    open_info.get_flags()

`Returns:` `moo.OpenFlags`

### get_line()

    open_info.get_line()

`Returns:` `int`

### set_flags()

    open_info.set_flags(flags)

`flags` : | `moo.OpenFlags`

### set_line()

    open_info.set_line(line)

`line` : | `int`

Prev | Up | Next
moo.Editor - editor object | Home | moo.ReloadInfo - information for reloading a file