from ascii_designer import AutoFrame, set_toolkit


class Counter(AutoFrame):
    f_body = """
                    |
        [ Counter_ ] [Count]
    """

    def f_on_build(self):
        self["counter"]["state"] = "readonly"
        self["counter"].variable.convert = int
        self.counter = 0

    def count(self):
        self.counter = self.counter + 1


if __name__ == "__main__":
    set_toolkit("ttk")
    Counter().f_show()

d0ffea6a3d01cd80edf9326d755b51fb74a30143
<mask token>


class Counter(AutoFrame):
    <mask token>

    def f_on_build(self):
        self['counter']['state'] = 'readonly'
        self['counter'].variable.convert = int
        self.counter = 0

    def count(self):
        self.counter = self.counter + 1


<mask token>

<mask token>


class Counter(AutoFrame):
    f_body = """
                    |
        [ Counter_ ] [Count]
    """

    def f_on_build(self):
        self['counter']['state'] = 'readonly'
        self['counter'].variable.convert = int
        self.counter = 0

    def count(self):
        self.counter = self.counter + 1


<mask token>

<mask token>


class Counter(AutoFrame):
    f_body = """
                    |
        [ Counter_ ] [Count]
    """

    def f_on_build(self):
        self['counter']['state'] = 'readonly'
        self['counter'].variable.convert = int
        self.counter = 0

    def count(self):
        self.counter = self.counter + 1


if __name__ == '__main__':
    set_toolkit('ttk')
    Counter().f_show()

from ascii_designer import AutoFrame, set_toolkit


class Counter(AutoFrame):
    f_body = """
                    |
        [ Counter_ ] [Count]
    """

    def f_on_build(self):
        self['counter']['state'] = 'readonly'
        self['counter'].variable.convert = int
        self.counter = 0

    def count(self):
        self.counter = self.counter + 1


if __name__ == '__main__':
    set_toolkit('ttk')
    Counter().f_show()

from ascii_designer import AutoFrame, set_toolkit


class Counter(AutoFrame):
    f_body = """
                    |
        [ Counter_ ] [Count]
    """

    def f_on_build(self):
        self["counter"]["state"] = "readonly"
        self["counter"].variable.convert = int
        self.counter = 0

    def count(self):
        self.counter = self.counter + 1


if __name__ == "__main__":
    set_toolkit("ttk")
    Counter().f_show()
