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` : | `integer index (0-based)`
`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` : | `integer index (0-based)`
`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` : | `integer index (0-based)`
`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:` `integer index (0-based)`

### set_flags()

    open_info.set_flags(flags)

`flags` : | `moo.OpenFlags`

### set_line()

    open_info.set_line(line)

`line` : | `integer index (0-based)`

Prev | Up | Next
moo.LineView | Home | moo.ReloadInfo - information for reloading a file