Skip to content

GUI Implement basic types: str, int, float, bool #33

@e3rd

Description

@e3rd

This would create a simple form:

#!/usr/bin/env python3
from dataclasses import dataclass
from mininterface import run

@dataclass
class Env:
    foo1: str
    foo2: int
    foo3: float
    foo4: bool


m = run(Env)
print(m.env)
quit()
Image

Some complex fields (like datetime) are re-created here; re-create also basic types str, int, float, bool:

grid_info = replace_variable(variable)

So that we might suppress the dependency on tkinter_form library (which seems stuck) in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions