Functions
Prev | Chapter 3. medit Python API | Next

## Functions

### dgettext()

    moo.dgettext(domain, string)

`domain` : | `str`
`string` : | `str`

`Returns:` `str`

### error_dialog()

    moo.error_dialog(text, secondary_text=None, parent=None)

`text` : | `str`
`secondary_text` : | `str` or `None`
`parent` : | `gtk.Widget` or `None`

### gettext()

    moo.gettext(string)

`string` : | `str`

`Returns:` `str`

### info_dialog()

    moo.info_dialog(text, secondary_text=None, parent=None)

`text` : | `str`
`secondary_text` : | `str` or `None`
`parent` : | `gtk.Widget` or `None`

### overwrite_file_dialog()

    moo.overwrite_file_dialog(display_name, display_dirname, parent=None)

`display_name` : | `str`
`display_dirname` : | `str`
`parent` : | `gtk.Widget` or `None`

`Returns:` `bool`

### prefs_get_bool()

    moo.prefs_get_bool(key)

`key` : | `str`

`Returns:` `bool`

### prefs_get_file()

    moo.prefs_get_file(key)

`key` : | `str`

`Returns:` `gio.File`

### prefs_get_filename()

    moo.prefs_get_filename(key)

`key` : | `str`

`Returns:` `str`

### prefs_get_int()

    moo.prefs_get_int(key)

`key` : | `str`

`Returns:` `int`

### prefs_get_string()

    moo.prefs_get_string(key)

`key` : | `str`

`Returns:` `str`

### prefs_new_key_bool()

    moo.prefs_new_key_bool(key, default_val=False)

`key` : | `str`
`default_val` : | `bool`

### prefs_new_key_int()

    moo.prefs_new_key_int(key, default_val=0)

`key` : | `str`
`default_val` : | `int`

### prefs_new_key_string()

    moo.prefs_new_key_string(key, default_val=None)

`key` : | `str`
`default_val` : | `str` or `None`

### prefs_set_bool()

    moo.prefs_set_bool(key, val)

`key` : | `str`
`val` : | `bool`

### prefs_set_file()

    moo.prefs_set_file(key, val)

`key` : | `str`
`val` : | `gio.File` or `None`

### prefs_set_filename()

    moo.prefs_set_filename(key, val)

`key` : | `str`
`val` : | `str` or `None`

### prefs_set_int()

    moo.prefs_set_int(key, val)

`key` : | `str`
`val` : | `int`

### prefs_set_string()

    moo.prefs_set_string(key, val)

`key` : | `str`
`val` : | `str` or `None`

### question_dialog()

    moo.question_dialog(text, secondary_text=None, parent=None, default_response=gtk.RESPONSE_OK)

`text` : | `str`
`secondary_text` : | `str` or `None`
`parent` : | `gtk.Widget` or `None`
`default_response` : | `gtk.ResponseType`

`Returns:` `bool`

### save_changes_dialog()

    moo.save_changes_dialog(display_name, parent=None)

`display_name` : | `str`
`parent` : | `gtk.Widget` or `None`

`Returns:` `moo.SaveChangesResponse`

### spin_main_loop()

    moo.spin_main_loop(sec)

`sec` : | `float`

### tempdir()

    moo.tempdir()

Return the path of medit temporary file directory. This directory is created automatically and is removed on exit. It is unique among all medit instances.

`Returns:` `str`

### tempnam()

    moo.tempnam(extension=None)

Generate a unique filename for a temporary file. Generated filename is located inside directory returned by `tempdir()`, and it will be automatically removed on exit.

`extension` : | `str` or `None`

`Returns:` `str`

### warning_dialog()

    moo.warning_dialog(text, secondary_text=None, parent=None)

`text` : | `str`
`secondary_text` : | `str` or `None`
`parent` : | `gtk.Widget` or `None`

Prev | Up | Next
moo.Window - window object | Home | Enumerations