fossasia/kniteditor

View on GitHub
kniteditor/dialogs.py

Summary

Maintainability
A
0 mins
Test Coverage
"""Dialogs for the UI."""
from kivy.uix.floatlayout import FloatLayout
from kivy.factory import Factory
from kivy.properties import ObjectProperty


class LoadDialog(FloatLayout):

    """A dialog to open files."""

    load = ObjectProperty(None)
    cancel = ObjectProperty(None)


class SaveDialog(FloatLayout):

    """A dialog to save files."""

    save = ObjectProperty(None)
    text_input = ObjectProperty(None)
    cancel = ObjectProperty(None)

Factory.register('LoadDialog', cls=LoadDialog)
Factory.register('SaveDialog', cls=SaveDialog)

__all__ = ["LoadDialog", "SaveDialog"]