Skip to content

Not all input fields update dynamically #36

Description

@PFython

For example entering a new package Name will not restart the creation process; changing the Github username will not change the URL or credentials held in keyring.

These limitations aren't obvious or problematic for creating a single package in a single session. Current workaround is to simply close the window and create a new package=Package(), but it would be nice for this to happen more dynamically.

The author doesn't plan to make further cosmetic/navigation/UX/UI improvements unfortunately, so if anyone with competent PySimpleGUI skills is reading this and has the time and inclination to create improvements that would be fantastic, thank you.

[cleversetup] easypypi/easypypi.py (Lines 513-534)


    def get_user_input(self):
        """
        Check config file for previous values.  If no value is set, prompts for
        a value and updates the relevant Package attribute.
        """
        layout = self.get_main_layout_inputs()
        layout, choices, selected_choices = self.get_main_layout_classifiers(layout)
        layout = self.get_main_layout_buttons(layout)
        window = sg.Window(
            "easyPyPI",
            layout,
            keep_on_top=SG_KWARGS["keep_on_top"],
            icon=SG_KWARGS["icon"],
            element_justification="center",
        )
        while True:
            set_menu_colours(window)
            event, values = window.read()
            if event is None:
                window.close()
                return False
            if event ==

Open in IDE · Open on GitHub

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions